damn any help?
|
|
Hello,
Normally I jar my client and so I start it but I have seen that at some computers(64Bit) it doesnt work so I wanted to make a run like this:
But my problem is he says this then:@echo off
title Client
java -Xmx1000m Client.jar
pause
Error: Main class client.jar could not be found or loaded
I would rep++ for help... I have already seen this that this works but Idk what I have to do there... Mayby at jframe, client.java idk xD
damn any help?
Should work.java -jar Client.jar

I made this one now:
and now it says:@echo off
title Client
"%HOMEDRIVE%/Program Files/Java/jre6/bin/java.exe" -Xmx1000m -jar Client.jar
pause
any help? :/Exception in thread "main" java.lang.UnsupportedClassVersionError: client : Unsu
pported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: client. Program will exit.
dump
nope still comes this message:
Exception in thread "main" java.lang.UnsupportedClassVersionError: client : Unsu
pported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: client. Program will exit.
damn it works thanksehh but why doesn't it work with jre6?? not everybody got jre7 i think... I have this idea running the .jar from another server and there he use jre6... and it works fine
All you had to do is use:
^ as long as the Client.jar is in the same folder as the .bat file.@echo off
title Client
Client.jar
pause
| « Variable anIntArray353 [Please Look] | New cursors » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |