The Artima Developer Community
Sponsored Link

Java Answers Forum
distributed .jat doesn't work

1 reply on 1 page. Most recent reply: Jun 20, 2010 1:46 PM by Vincent O'Sullivan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Marcelo Poblete

Posts: 1
Nickname: mpobletea
Registered: Jun, 2010

distributed .jat doesn't work Posted: Jun 19, 2010 8:25 AM
Reply to this message Reply
Advertisement
I'm having problems distributing an application. While the .jar file runs perfectly on my own pc, it doesn't work when I run it on another machine. I got the "couldn't find main class" message everytime I try to run it by double-clicking on it. If I try to execute it from command line (using java -jar) the message I got is "unsupported major.minor version 50.0".

I verified the MANIFEST.NF file is configured correctly, so I don't understand.

I'm using NetBeans 6.8 as IDE, and java 1.6 on Windows XP.

Any help will be appreciated, thanks.

PS: I'm not a native English speaker, so excuse (and point) any mistakes


Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: distributed .jat doesn't work Posted: Jun 20, 2010 1:46 PM
Reply to this message Reply
> I'm using NetBeans 6.8 as IDE, and java 1.6 on Windows
> XP.

I think the reason is that your jar file will only work on machines that are running java version 1.6. If the other PCs are running Java 1.5 then you need to make sure that your code is compiled to run using 1.5.

I don't use NetBeans but I would expct that there is a project setting that you can change, to target 1.5.

Flat View: This topic has 1 reply on 1 page
Topic: Lucene Java 3.0.2 and 2.9.3 Released! Previous Topic   Next Topic Topic: Question about running JApplets in Event Dispatch Thread

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use