Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985729/#msg_985729
)
I have been using and learning Java and Eclipse for a month or so now and randomly it stopped working. Now it says that System.out.println is wrong for some reason and when i try to run it it give me this error
Exception in thread "main" java.lang.UnsupportedClassVersionError: Practice : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
(also im on a mac and i would post a screenshot but i dont know how to yet..)
thanks
]]>Jacob O2012-11-15T20:42:20-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985769/#msg_985769
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jacob,<br>
<br>
That looks similar to what you'd get if you run a .class file
compiled for Java 5.0 on a 1.4 or less JVM... A bit of Googling
would turns up this:<br>
<blockquote><a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/12331138/java-lang-unsupportedclassversionerror-myapp-unsupported-major-minor-version">http://stackoverflow.com/questions/12331138/java-lang-unsupportedclassversionerror-myapp-unsupported-major-minor-version</a><br>
</blockquote>
<br>
<div class="moz-cite-prefix">On 15/11/2012 10:28 PM, Jacob O wrote:<br>
</div>
<blockquote cite="mid:k83mqg$ni4$1@xxxxxxxxe.org" type="cite">(This
is my first post on any sort of forum so im really sory if i did
something wrong :p)
<br>
I have been using and learning Java and Eclipse for a month or so
now and randomly it stopped working. Now it says that
System.out.println is wrong for some reason and when i try to run
it it give me this error
<br>
Exception in thread "main" java.lang.UnsupportedClassVersionError:
Practice : Unsupported major.minor version 51.0
<br>
at java.lang.ClassLoader.defineClass1(Native Method)
<br>
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
<br>
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
<br>
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
<br>
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
<br>
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
<br>
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
<br>
at java.security.AccessController.doPrivileged(Native Method)
<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
<br>
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
<br>
(also im on a mac and i would post a screenshot but i dont know
how to yet..)
<br>
<br>
thanks
<br>
<br>
</blockquote>
<br>
</body>
</html>]]>Ed Merks2012-11-16T05:00:56-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985927/#msg_985927
(ok again im not sure if im doing this correctly)
I already did a search about Java not working and Eclipse not working and already got that but im on mac and have no idea about what version i have etc. but i think i found out how to add a screenshot
^^Hopefullly you can see this
^^And these. So these are basically the errors i get on a simple program.]]>Jacob O2012-11-16T17:21:56-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985936/#msg_985936
> (ok again im not sure if im doing this correctly)
> I already did a search about Java not working and Eclipse not working and already got that but im on mac and have no idea about what version i have etc. but i think i found out how to add a screenshot
>
> ^^Hopefullly you can see this
>
>
> ^^And these. So these are basically the errors i get on a simple program.
The JavaPractice project doesn't appear to have been set up as a Java
project. It's visibly missing JRE System Library. You might be able to
add this by right-clicking on the project, choosing Build Path ->
Configure Build Path, then click the Libraries tab and the Add
Library... button, then JRE System Library and add that. (If it didn't
start out as a Java project, then something else might be broken. It's
easier to start off life correctly.)]]>Russell Bateman2012-11-16T18:02:24-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985950/#msg_985950
]]>Jacob O2012-11-16T20:39:24-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985954/#msg_985954
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985957/#msg_985957
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985960/#msg_985960
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985964/#msg_985964
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985966/#msg_985966
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985969/#msg_985969
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985971/#msg_985971
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985972/#msg_985972
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985973/#msg_985973
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985974/#msg_985974
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985975/#msg_985975
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985976/#msg_985976
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985977/#msg_985977
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985979/#msg_985979
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985981/#msg_985981
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
Odd:]]>Russell Bateman2012-11-16T20:54:23-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/985982/#msg_985982
> Thanks, right clicking and selcting the library works with that project but about creating a new project i click "new Java Project" and it for some reason doesn't put the library in as well..
>
>
>
You are selecting a 1.7 execution environment in the New Project Wizard
however, it appears that you don't have a 1.7 JRE defined to your
workspace. You appear to have a 1.6 JRE.
You need to either install a 1.7 JDK and configure it in the workspace,
or switch you projects to a 1.6 execution environment or a 1.6 JRE.]]>David Wegener2012-11-16T21:45:59-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/987011/#msg_987011
Jacob O2012-11-22T20:40:52-00:00Re: Eclipse not working?
https://www.eclipse.org/forums/index.php/mv/msg/440203/987035/#msg_987035
> Is there a real difference between 1.7 and 1.6? Also how would i
> configure the workspace for 1.7?
Yes, there is a real difference between them. In order to configure a
workspace for 1.7, you have to point to a 1.7 JDK or JRE.
If you don't need a 1.7 execution environment, you can change the
project to use a 1.6 environment.]]>David Wegener2012-11-23T04:23:16-00:00