Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Okay, Now I'm frustrated!!!!!

Status
Not open for further replies.

dcusick

Technical User
Aug 9, 2000
271
US
Okay, I have posted twice about my app that I'm writing in jdk 1.1.8. I took Sedj's advice and converted my entire app from Swing to AWT. I am able to compile it, and run it using java.exe. However, my client only has the 1.1.8 JRE on their machines. So I must use jre.exe in order to execute the jar file. I have a bat file made up that changes the JAVA_HOME directory, the PATH directory, and CLASSPATH directory. I also specify an environment variable, %JARS% to hold my needed classes. It then calls java.exe with -classpath "%JARS%" and it runs fine. However, when I changed this bat file to look at the JRE directory, and use JRE.exe, I get the good ole Class Not Found: error... I haven't changed any of my class information from when I was using java.exe. Someone please help, as this is really starting to frustrate me!!!

P.S. I also tried with -cp, but to no avail!

Doug
 
it may sound dumb but do you have:-

.;(period semi colon) in your CLASSPATH(the one that you defined in the bat file?)

~za~
You can't bring back a dead thread!
 
yup, I already had that... Didn't work... Oh well... Thanks for the suggestion though...
 
dcusick :

I know its a bore, but I would go back to square one and see if you can successfully execute a "Hello World" command line class (just one System.out.println("Hello")) in the main class use the jre.exe on 1.1.

This will then tell us whether it is
1) AWT behaving bizarrly
2) Whether it is indeed some silly thing such as conflicting libraries/classpath etc etc.

Come back with the results, and good luck !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top