LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2015, 07:36 AM   #1
C99
LQ Newbie
 
Registered: May 2015
Posts: 4

Rep: Reputation: Disabled
Error while running my run.sh


Hello,

I am trying to run a java application, but i'm getting an error when running my run.sh

This is my run.sh
Code:
java -classpath bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar server.Server
Here is the error while running run.sh
Code:
Exception in thread "main" java.lang.UnsupportedClassVersionError: server/Server : 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)
Could not find the main class: server.Server.  Program will exit.
Thanks
 
Old 05-09-2015, 03:33 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
1)
What Operating System is this ?
2)
what version of said OS is this ?
3)
what version of JAVA is this ?
Oracles java ? 1.6 1.7 1.8 ?
or OpenJDK ? 1.6 1.7 1.8 ?

4)
what is this unknown java program and what is in this "run.sh"
 
Old 05-09-2015, 03:48 PM   #3
C99
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
1) Linux
2) CentOS-7 (64bit)
3) jdk-6u45-linux-x64-rpm and jre-6u45-linux-x64-rpm
4) What do you mean?

Last edited by C99; 05-09-2015 at 03:54 PM.
 
Old 05-09-2015, 05:26 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Re #3.

Add 2) Please install jre7 ( or jdk7 ).

Add 4) Please tell which program you want to run with 'run.sh'.


-
 
Old 05-10-2015, 08:09 AM   #5
C99
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Re #4.

It's RuneScape Private Server

Okay, it's done, and now I'm getting this

Code:
java.io.FileNotFoundException: ./data/cfg/prices.txt (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at java.util.Scanner.<init>(Scanner.java:656)
        at server.world.ItemHandler.loadItemPrices(ItemHandler.java:324)
        at server.world.ItemHandler.<init>(ItemHandler.java:36)
        at server.Server.<clinit>(Server.java:53)
./Data/CFG/npc.cfg: file not found.
./Data/CFG/spawn-config.cfg: file not found.
shops.cfg: file not found.
java.io.FileNotFoundException: data/lolmap.bin (No such file or directory)
        at java.io.RandomAccessFile.open(Native Method)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:122)
        at server.world.WalkingHandler.initialize(WalkingHandler.java:46)
        at server.Server.main(Server.java:105)
[5/10/15 3:06 PM]: Launching Server
[5/10/15 3:06 PM]: java.io.FileNotFoundException: data/lolmap.bin (No such file or directory)
[5/10/15 3:06 PM]:      at java.io.RandomAccessFile.open(Native Method)
[5/10/15 3:06 PM]:      at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
[5/10/15 3:06 PM]:      at java.io.RandomAccessFile.<init>(RandomAccessFile.java:122)
[5/10/15 3:06 PM]:      at server.world.WalkingHandler.initialize(WalkingHandler.java:46)
[5/10/15 3:06 PM]:      at server.Server.main(Server.java:160)
[5/10/15 3:06 PM]: Server online on port:43594
 
Old 05-10-2015, 12:04 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Re #5.

RuneScape Private Server : There is more than one of those, I think.
RuneScape Private Server : Which file name did you download ? ?
... And please show a direct link to the file / package you are using.
 
Old 05-10-2015, 12:33 PM   #7
C99
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Re #6

Can you please give me your contacts, so I can send you.
 
Old 05-10-2015, 02:40 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
no one here is going to give out there email
i do not even allow people ( except for the site admins email me)

http://www.runescape.com/
this is a online game


you NEED to allow the very big security risk of "javascript" to run in your browser
this is turned on in firefox

and DISABLE no-script in firefox on that site and disable
then have the
icedtea - web-plugin ,

and allow ( say YES) the java program pop up that pops up asking to run software on your machine
and to STORE files on your machine
you need to say yes to the NASTY WARNING pop up that informs you of the BIG RISK of doing that

Last edited by John VV; 05-10-2015 at 02:51 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qemu: run gust images face error > Exec format error Sefid par Linux - Virtualization and Cloud 3 07-30-2013 03:40 PM
[SOLVED] Running .run files? Maxaxle Linux - Software 3 08-03-2010 12:36 PM
How do I run the DDclient running Glenn D. Linux - Newbie 2 01-29-2010 06:50 AM
error when tying to run python script(bash error?) shanenin Programming 5 01-10-2006 11:01 AM
When running a script I get a box asking "Run or display ?" I want it to just run aaronruss Linux - Newbie 4 05-28-2004 01:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration