Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2004

Tip: Looking for answers? Try searching our database.

How do I configure Eclipse 2.1.2 to use Java SDK 1.4.2_03?

Thread view: 
Novice - 09 Mar 2004 20:56 GMT
Hi all, I'm having a problem using Eclipse 2.1.2 - I don't seem to be
able to get it to make use of the latest version of the Java SDK that
I have installed (1.4.2_03).

I don't seem to be able to get Eclipse to use the external compiler as
it keeps complaining that the package java.util.logging does not
exist.

I have tried going to Project -> properties -> External Tool Builders
and then New.  Then I choose a program (as opposed to ant build).  But
whenever I choose the javac.exe executable and then choose the source
directory for the working directory - it reports:
Could not run the external tool.
 An error occurred attempting to expand the variable workspace_loc.
No resource selected.

I think this is happening because I'm not specifying the individual
source files to compile.

If I try to include the src.zip associated with the Java 1.4.2_03 SDK
I get the following:
-------------------------------
java.lang.UnsupportedClassVersionError: com/timcassidy/testing/Test
(Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:703)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:133)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:319)
at java.net.URLClassLoader.access$400(URLClassLoader.java:92)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:677)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:238)
at java.lang.ClassLoader.loadClass(ClassLoader.java:516)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:441)
at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
Exception in thread "main"
-------------------------------

Any suggestions?

Thanks,
Novice
Joe Fischer - 10 Mar 2004 00:06 GMT
>Hi all, I'm having a problem using Eclipse 2.1.2 - I don't seem to be
>able to get it to make use of the latest version of the Java SDK that
[quoted text clipped - 38 lines]
>Thanks,
>Novice
    I thought it was Preferences->Java->Installed JREs that
determines which JRE is used to compile and run a project.  It can
also be set on project basis on the JRE tab of the Run configuration
page.
    You could also check to see what JRE is running eclipse.  Goto
Help->Configuration Details.
-------
Remove underscores from e-mail address.
Novice - 10 Mar 2004 13:24 GMT
> >Hi all, I'm having a problem using Eclipse 2.1.2 - I don't seem to be
> >able to get it to make use of the latest version of the Java SDK that
[quoted text clipped - 46 lines]
> -------
> Remove underscores from e-mail address.

Thanks so much.  Aside from missing the drop down that contains
preferences you were dead on.  I can't believe I had wasted over 3
hours trying to find where/how to configure this.

As it turns out, you can set the Java compiler in Eclipse 2.1.2 in
the:
Window->Preferences->Java->Installed JREs

THANK YOU VERY MUCH!!!

Novice
tamaral - 11 May 2004 12:39 GMT
I've been looking into the the same question, though I'm using version
3.0.0. Eclipse (that is, its Java Development Tools plug-in) uses a
built-in Java compiler; you can't use an external one. See
http://www.eclipse.org/documentation/html/plugins/org.eclipse.jdt.doc.user/doc/r
eference/ref-152.htm

Unfortunately, the Windows | Preferences | Java | Installed JREs dialog
does say "The checked JRE will be used by default to BUILD and run Java
programs", which is misleading...
Cheers,
Telmo


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.