|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
having a problem with Dr JavaHi everybody, I m new to Java. I v just installed Dr Java on my computer, but i have problem compiling my files, everytime when i compile, it returns an error says:
1 error found: File: (no associated file) [line: (no source location)] Error: java.lang.NoSuchMethodError: com.sun.tools.javac.util.Options.put(Ljava/lang/String;Ljava/lang/String;)V can anyone help me? |
|
|
Re: having a problem with Dr Javajavaisyourfriend @ 2007-4-17 8:33:41 PM "[Drjava-users] having a problem with Dr Java" <mid:10050809.post@...> > Hi everybody, I m new to Java. I v just installed Dr Java on my > computer, but i have problem compiling my files, everytime when i > compile, it returns an error says: > 1 error found: > File: (no associated file) [line: (no source location)] > Error: java.lang.NoSuchMethodError: > com.sun.tools.javac.util.Options.put(Ljava/lang/String;Ljava/lang/String;)V We have seen this error with users who have installed JDK 6.0. Setting the tools.jar path should solve this problem. Select "Edit -> Preferences..." and click on the "..." to the right of the "tool.jar" field. This will display a file selection dialog. Now that the selection dialog is open, navigate through your file system and select your "tools.jar". On Windows, it can often be found in "C:\Program Files\Java\<jdk version>\lib\tools.jar". If you cannot find it here, search for "tools.jar" across all your hard drives. On Linux\Unix and Mac OS X, typing "locate tools.jar" at a command line can help you locate it. -- Chris Warrington <chrisw@...> In an office: WOULD THE PERSON WHO TOOK THE STEP LADDER YESTERDAY PLEASE BRING IT BACK OR FURTHER STEPS WILL BE TAKEN ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Drjava-users mailing list Drjava-users@... https://lists.sourceforge.net/lists/listinfo/drjava-users |
|
|
Re: having a problem with Dr Javathank u for replying, but I have already done this and the problem is still there, I downloaded Drjava and ran it, then I go to "edit"> "preferences" >"resource location" and locate Tools.jar Location to C:\Program Files\Java\jdk1.5.0_04\lib\tools.jar.
that's how I set up it, and I have already installed JDK 5.0 update 4 on my computer, as well as JRE 5.0 update 10. Are there anything wrong with my setup? |
|
|
Re: having a problem with Dr Javajavaisyourfriend @ 2007-4-18 10:19:41 AM "[Drjava-users] having a problem with Dr Java" <mid:10060206.post@...> > thank u for replying, but I have already done this and the problem is still > there, I downloaded Drjava and ran it, then I go to "edit"> "preferences" >>"resource location" and locate Tools.jar Location to C:\Program > Files\Java\jdk1.5.0_04\lib\tools.jar. that's how I set up it, and I > have already installed JDK 5.0 update 4 on my computer, as well as > JRE 5.0 update 10. Are there anything wrong with my setup? Are you running DrJava with JRE 1.5.0_04 as well? The compiler and JRE need to be the same version. -- Chris Warrington <chrisw@...> Today's Oxymoron: Pretty ugly ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Drjava-users mailing list Drjava-users@... https://lists.sourceforge.net/lists/listinfo/drjava-users |
|
|
Re: having a problem with Dr JavaThank u Chris, the problem has been resolved. Since i ve upadated my JRE to the newest version, Dr java can't recognize the tools.jar file. So I just deleted my JRE and setuped an older version, everything seems fine now
|
| Free Forum Powered by Nabble | Forum Help |