Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse not working?
Eclipse not working? [message #985729] Thu, 15 November 2012 20:42 Go to next message
Jacob O is currently offline Jacob OFriend
Messages: 4
Registered: November 2012
Junior Member
(This is my first post on any sort of forum so im really sory if i did something wrong Razz)
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
Re: Eclipse not working? [message #985769 is a reply to message #985729] Fri, 16 November 2012 05:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
<html>
<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 Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse not working? [message #985927 is a reply to message #985769] Fri, 16 November 2012 17:21 Go to previous messageGo to next message
Jacob O is currently offline Jacob OFriend
Messages: 4
Registered: November 2012
Junior Member
index.php/fa/12370/0/(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
index.php/fa/12370/0/.
^^Hopefullly you can see this
index.php/fa/12370/0/
index.php/fa/12371/0/
^^And these. So these are basically the errors i get on a simple program.
Re: Eclipse not working? [message #985936 is a reply to message #985927] Fri, 16 November 2012 18:02 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 10:21 AM, Jacob O wrote:
> (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.)
Re: Eclipse not working? [message #985950 is a reply to message #985936] Fri, 16 November 2012 20:39 Go to previous messageGo to next message
Jacob O is currently offline Jacob OFriend
Messages: 4
Registered: November 2012
Junior Member
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..
index.php/fa/12373/0/
index.php/fa/12374/0/
index.php/fa/12375/0/
Re: Eclipse not working? [message #985954 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985957 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985960 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985964 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985966 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985969 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985971 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985972 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985973 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985974 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985975 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985976 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985977 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985979 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985981 is a reply to message #985950] Fri, 16 November 2012 20:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/16/2012 1:39 PM, Jacob O wrote:
> 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:
Re: Eclipse not working? [message #985982 is a reply to message #985950] Fri, 16 November 2012 21:45 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 11/16/2012 02:39 PM, Jacob O wrote:
> 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.
Re: Eclipse not working? [message #987011 is a reply to message #985982] Thu, 22 November 2012 20:40 Go to previous messageGo to next message
Jacob O is currently offline Jacob OFriend
Messages: 4
Registered: November 2012
Junior Member
Is there a real difference between 1.7 and 1.6? Also how would i configure the workspace for 1.7?
Re: Eclipse not working? [message #987035 is a reply to message #987011] Fri, 23 November 2012 04:23 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 11/22/2012 02:40 PM, Jacob O wrote:
> 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.
Previous Topic:JAVA downloads
Next Topic:tool bar ions
Goto Forum:
  


Current Time: Tue Apr 16 06:02:57 GMT 2024

Powered by FUDForum. Page generated in 1.04094 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top