Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 28th, 2005, 2:25 AM   #1
shangnyun
Programmer
 
shangnyun's Avatar
 
Join Date: Jun 2005
Posts: 34
Rep Power: 0 shangnyun is on a distinguished road
Classpath Issues

I'm using UltraEdit32 to compile and run my Java applications.

See this thread for info on how the issue loooks like. As you will see, I managed to resolve the issue successfully. Now, I updated to Java 1.5 Update 4 when it came out, and honestly, I have no idea why. There was no reason for me to do so

Now I keep getting the following error when I try to compile in UE32:

"'C:\Program' is not recognized as an internal or external command,
operable program or batch file."

This usually indicates that quotation marks are missing somewhere. But they're not. This is what I have in my command-line for the custom tool command in UE32:

"C:\Program Files\Java\jdk1.5.0_04\bin\javac.exe" "%f"

This worked perfectly fine before I updated to this latest Java JDK. Now it's broken and I'm getting the above error.

Now, look at the screenshot. That's the complete list of my system environment variables. The content of the variable "Path" is the following:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Java\jdk1.5.0_04\bin;

(That odd random space in "System" is not actually defined that way. The word "system" here appears normally, but for some reason, when I paste it in here, it prints with that space in it :/)

If I remember correctly, this used to work just fine before I updated to Java update 4. Of course I changed the "3" to a "4" where applicable. Can anyone tell me what's going on? I also restarted the system in the hopes that that might do something, but it didn't. I have no idea how to fix this. Also, when I run the javac and java commands using the old fashioned way, namely straight from command prompt, it works just fine. I just have to be in the folder where my class resides, compile, (works), and run, (works too).

Thanks
Attached Images
File Type: png 6-28-2005==2.22.54 AM--001.png (8.0 KB, 90 views)
shangnyun is offline   Reply With Quote
Old Jun 28th, 2005, 1:43 PM   #2
squishiful
Programmer
 
Join Date: Jun 2005
Location: Amittyville
Posts: 60
Rep Power: 4 squishiful is on a distinguished road
Do you have your classpath variable set to: C:\Program Files\Java\jdk1.5.0_04\lib

The classpath variable may not exist if it doesn't create it and set: C:\Program Files\Java\jdk1.5.0_04\lib as the value
__________________
I steal hippos...
squishiful is offline   Reply With Quote
Old Jun 29th, 2005, 12:58 AM   #3
shangnyun
Programmer
 
shangnyun's Avatar
 
Join Date: Jun 2005
Posts: 34
Rep Power: 0 shangnyun is on a distinguished road
Given the info above... what do you mean? I put a screenshot up of ALL the values there are in my system's environment variables, so I'm not sure what you mean.
shangnyun is offline   Reply With Quote
Old Jun 29th, 2005, 11:15 AM   #4
squishiful
Programmer
 
Join Date: Jun 2005
Location: Amittyville
Posts: 60
Rep Power: 4 squishiful is on a distinguished road
You need to click the button: new then name the new variable classpath and set its value to: C:\Program Files\Java\jdk1.5.0_04\lib

its another environment var you need, try it out, it just might work
__________________
I steal hippos...
squishiful is offline   Reply With Quote
Old Jul 2nd, 2005, 2:24 PM   #5
shangnyun
Programmer
 
shangnyun's Avatar
 
Join Date: Jun 2005
Posts: 34
Rep Power: 0 shangnyun is on a distinguished road
Didn't do anything. I think this is an UltraEdit32 problem, not a Java problem. Bleh
shangnyun is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC