Specifying the directory will not work unless you have J2EE classes in exploded format in that directory. Most likely, they will be in a jar file under lib directory of your installation and you will have to explicitly specify the jar file in order for the compiler to pick J2EE classes. One...
Weblogic is a J2EE application server. So applications running on Weblogic are developed using Java technologies.
Ganesh
If you find my post really helpful, please record it by clicking the purple star below.
Most of the application servers provide the option of specifying startup classes. They let you specify startup classes as a configuration paramter(a properties file or a XML) and start them automatically when the server is started. I'd suggest you to explore this option in your app server...
I'd also strongly recommend sedj's approach. I had to a similar stuff a year back and this is what I did:
I divided the application into several modules, each representing a solid functionality that can be exposed to the outside world on its own without any dependency on other modules. Then, I...
>>why do I need to specify the path again above when I set the classpath already?
I am not sure as to how you set you classpath before running the program. If you don't specify the classpath using -classpath identifier, javac picks up the classpath value from the env variable classpath. You can...
1) what is the proper place to add the third party package?
You can place it wherever you want. Just set you CLASSPATH variable to point to those packages(Just the directory if you have classes, the jar file itself if it is already packaged)
As for your other questions,
is the classpath same...
gb828,
Place the new jar under some other folder and set your class path to point to the jar(not the directory). For example, you can put the sample.jar under c:\temp and set your classpath as,
CLASSPATH=c:\temp\sample.jar
Ganesh
If you find my post really helpful, please record it by clicking...
Umesh,
I don't think there is any way you can specify that.
Ganesh
If you find my post really helpful, please record it by clicking the purple star below.
Is there a good book and/or websites on some basic standards and rules of thumbs to think about when I start designing my code?
Looks like, you are new to OOPS world! I'd recommend Object-oriented Analysis and design with Applications by Grady Booch.
Ganesh
If you find my post really...
May be, you have named your class as accuracytests instead of AccuracyTests, just open your AccuracyTests.java and check the case of AccuracyTests at public class AccuracyTests
Ganesh
If you find my post really helpful, please record it by clicking the purple star below.
Oops! these TGML tags are killing me. The command-line invokation should read,
java -Dmyvariable=xyz com.abc.MyApplication
Sorry about that..
Ganesh
If you find my post really helpful, please record it by clicking the purple star below.
If the idea behind having these environment variables is just to configure some environment-specific parameters outside the Java code, you can try this instead.
Register the property using -D flag while you invoke your java application. This will be accessible inside java code with...
If you are going for a decompiler, I'd recommend jad. I used it couple of years back. I recall that it had plenty of command-line options and is very efficient too. In addition to legal restrictions, you may encouter other irritants such as obfuscators. Obfuscators juggle up the class file so...
I just wanted to let you know that I have obtained a solution for my problem. For some weird reason, java.util.zip.ZipFile doesn't work but it works if I directly get hold of Zip input stream using java.util.zip.ZipInputStream. I have just re-written the class of mailtorakeshkumar to explain...
idarke,
I did that, the zip created using java.util.zip is opening properly for me.
jwenting ,
It seems indeed logical that the file may be in a format that Java doesn't natively support.
You are correct. Looks like, my only option now is to look for a 3-rd party Java API to counter my 3-rd...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.