"Application Error" when transfering Java Games to V600 via Bluetooth
Now this is a real problem I have been having for quite some time now.
I am using a bluetooth dongle (MSI PC2PC) and my V600. I can make a connection to my phone perfectly and transfer videos, images and sounds perfectly with no hasle, except for Java applications.
I am using the OBEX Object Push when transfering Java applications. The transfer happens... my phone makes a connection to the PC and vice versa and the phone registers that the PC is trying to transfer a Java application. When I choose accept, the phone produces an "Application Error". The Java applications run perfectly using the J2ME wireless toolkit by just double-clicking the JAD file.
But to make the problem even worse, I have successfully transfered applications this way before with no hasle
It seams tempremental. Like it will accept it when it wants to accept it. I just tried to transfer an application that I have transfered and run before and it just gives this "Application Error".
Can anyone help with this? I have searched and searched the internet for a solution to no avail...
Garaunteed, if you find that jad file and convert it into jar your phone will happily recieve it, dunno why. But i think Jar and Jad are 2 totally different formats of Java. Jad has been used on me old Nokia 7650 but jar works fine, I've got a V525. Jar transferes and installs for this phone but I can't play it, Installation is fine, but just can't play it. I got Racing Fever 7210i, but i think its only for nokia's correct me if i'm wrong.
You obviously don't understand anything about Java, but ironically your solution worked!
But let me explain... The JAD file is the descriptor file for the JAR file. The JAR file contains that actual classes (or bytecode), images and sounds that are used in the game. If you upload the JAR file without the JAD, the application may work, provided that the JAR file contains a proper manifest file describing the application. If there is no manifest, then the JAD is necessary. The JAD can also be used to run the JAR file provided that you have te J2ME Wireless Toolkit or some or other J2ME environment installed on your PC.
However, the JAD file cannot run without the JAR file. The problem I was having is that the JAD file was newer than or had a name that was numerically larger that the JAR file and was therefore tested first by the phone. That's why I was getting the application error. The times that it worked was because I uploaded an older JAD file with a new JAR file or a numerically smaller JAD file. (in ascii, ie. "JAVA" has a higher value that "java" even though they are the same word)
But thanks for pointing my brain in the right direction
well I am 16, so really i'm quite an amature on java. But phones, i just tend to collect them. Where do you get your java files from? I have a motorola V525 and 600. I learnt in some other forum that i can change the size of the screen on jad, but i guess that's basic stuff.
The devices have different screen size and the metric is hardcoded (in most cases) into the application. That is hard to make an application to be easily adaptable to different screen size, and almost impossible to hack.
Changing pictures no need to decompolie and recompile, just simple uncompress (jar ~= zip) change resource and compress again (but it won't help in most cases). To decompile and compile again need developer knowledge, and all developer knows that make an obfuscated app compileable again ain't worth of effort.
Xenno what are you doing to make this transfer via bluetooth work? I have like 10 .jar file games but I have the same problem transfering BT. What are you doing different now? That thread made no sense to me?!
hi, i'm not sure about that i'm gonna delete all the games that i transfered, cause i had application errors before. but the reason for application error is because, your java can't be any java, it must be a Motorola java basically, specially made for V525's. There is a spanish site, but english is available, i'll link you. This has motorola games on it.
Definately, phone problem only for incorrectly flashed ones
I've read about java transfers that if the were "application error" the phone wouldn't permanently delete it, I asked the people why is this? they said it's probably their phone having an upgrade from online forum people, and the market. lol. I just got the games working today, and you just basically reminded me about this issue.
I just deleted the games, 3 games, with 3 that comes with the phone, and i have 16% left afterwards. so No, this bug doesn't affect my phone, because i havn't flashed it in any way. I'll ask those people that has this bug what version of flex/flash they have..
Often the jar files that you have are specific for a certain make of phone. I know that there are some games that run perfectly on a Nokia phone but do not run on a Motorola phone. This is because those games refer to specific Java API that can be found only in a Nokia phone.
The best thing to do is to download some or other generic environment that will run the .jar files, like the J2ME Wireless Toolkit. This will determine whether there is specific API that is refered to in the class files. Often when I try to run some of the games I get a "ClassNotFoundException" specifying a "com.nokia.somepackage.SomeClass NOT Found" error. Before I upload any game to my phone, I make sure it runs by first testing it with this toolkit.
So, the .jar file will upload successfully but it will not run because there is some other class missing or some other error.