[Q] Loading JAR Files? - Windows Phone 7 Software Development

Hi I have searched the 8 pages of threads and didn't see my question which is how do I load JAR files onto my HD7?
Thanks in Advance

Windows Phone 7 doesn't support Java JAR files.

I have a HTC HD2 with JBlend, and I would like to run also a jar file. I think that this depends only by the Java runtime like JBlen or JavaFX. Is the operating system under der Java runtime indeed essential?
Unfortunately if I try to install my jar file within JBlend I get the message "Failure extracting a jad file". With another Java runtime the jar freezed after starting successfully. On the desktop PC the jar runs without problems. Why not under WM?

you won't be able to load any random jar on your hd2. Cell phones don't have a full jvm so you will need a java app designed specifically for the cell phone. Chances are if you didn't get a jad (Java Archie Descriptor) with the jar then it's not for a cell phone.

Thank you, so it's a pitty. Actually I expected that the advantage of Java is to clear the differences bewteen platforms, especially between mobile and "big". It should be only a question of the jvm implementation. Why doesn't existe a "full" jvm for mobiles? There are several jvms. You know e.g. Esmertec or Mysaifu?
On the other hand I may construct the jad afterwards. There are jad-gengerators on the market. I did so, and the jvm complains that there is a missing descriptor within the jad. So I think that I should only complete the jad. But how?

m i n e c r a f t
?

Related

Java Development on Touch HD

I've been studying Java with the Open University and would like to put into practice some of my newfound knowledge on the mobile side of things.
Can anybody help me get started by telling me which configuration I should be using with regard to CLDC/CDC-MIDP, are there any JDK's for the Touch HD etc?
I have tried searching but to no avail so far so would appreciated your help.
Also, is there a decent Java compiler that operates under WM6. As that would be novel to play around with too! I currently use NetBeans on my pc.
Regards
Gary
Java on a mobile device = J2ME
There are plenty of Java VM for Pocket PC (check this thread). I think JBed (found in most blackstone ROM's including stock ones) is the best. It has severe limits but it is the best you can get on blackstone. For developement you can use your PC with Sun WTK 2.5.2 (it is supported by Netbeans).
There are no decent java compilers that run directly on PocketPC.
As your first app can you create a D-Pad in java to run skymobile????
garyainsworth said:
Can anybody help me get started by telling me which configuration I should be using with regard to CLDC/CDC-MIDP, are there any JDK's for the Touch HD etc?
Click to expand...
Click to collapse
Java ME : JBed or JBlend, choose one of them, both work great.
Java SE (Yes Desktop-class Java): MySaifu - http://www2s.biglobe.ne.jp/~dat/java/project/jvm/index_en.html
As for the JDK part (I mean the javac compiler and other tools), I do not know such a package yet. However, you can make javac work with MySaifu with a tools.jar file copied from standard JDK (1.3 or older probably).
Hope this helps
Java development with JVM for CDC
Thanks for your help guys.
I've managed to ge set up and have managed to create my first Midlet and run it on my Blackstone via JBed. I've used NetBeans 6.7
However, that is CLDC/MIDP, but when I try and install CDC creations JBed will not install it because a Midlet name is missing. Is this because the stock JBed does not support CDC. I have tried to find out but it is not perfectly clear and I will have to pay for a JVM to test my theory out if nobody can advise!
Thanks for help
Gazza
MOD EDIT
Moved to Themes, Applications and Software forum (?) as not related to rom development
I'd seriously look at JavaFX, sun released a beta of it the other day.
I really like it, it works well on the HD from my limited testing
http://javafx.com/downloads/windows.jsp
One slight flaw with the current version is that it wants to get network address even when try to search for local jar/jad on storage.
but setting it as default file association gets around that one..
JavaFX
Downloading as I write....
Thanks for your advice I appreciate it. As you may know, as a newcomer to development of JME it is so complicated to get started due to all the configurations so any pointers at this stage are very much appreciated.
Thanks
Gaz
OK, I have JavaFX installed on my HD and it works and I particularly like the calculator example app included with it. However, I still cannot get my CDC app to install. It says "Cannot install application because critical information is missing from the application file (.jad). I thought CDC used xml files and not JAD for descriptions. Am I wrong or is something to do with my platform/deployment configuration?
I cant see a jad file in the deploy folder either. Is this an error.
Thanks
Gaz
Nope, you still need the JAD descriptor file.
It's plain text file, just find some on the internet, open it with text editor and alter some of the properties in there, it's really easy.
Don't forget to change the path to your JAR archive - the best way is to put there just simple JAR name and copy the JAD to the same directory as JAR.
Thanks Pepcza,
I'll try that, just a thought though, if you still need a descriptor file (in this case .jad) why does'nt the Netbeans deployment process create it along with everything else? It does when creating CLDC platform apps!
Gaz
JavaFX
I think we should concentrate on this one. Youtube videos are working in bolt browser using Javafx. If only it would be a bit faster, It'll throw Jbed out of the window.

[LIB] OpenGLES 2.0 header and libs

Attached are the headers and libs needed to utilise the hardware in the HD2.
Theses are from the AMD SDK, so include some of the extensions available on the AMD z430 present on the HD2.
I may write a demo program, but for now, this is all you get
Enjoy.
Hi, i'm currently trying to develop an OpenGL ES 2.0 program on an HTC HD2 in c++. I can't get the program to link correctly. Link error LNK2019 for every function i try to use. The lib files are of couse included. The lib files seem to be the same sas in the AMD OpenGL ES Emulator. I thought the dlls on the mobile phone needed differnt libs, since the emulator uses win32 dlls. Am i doing something wrong or missunderstanding something?

Install Windows Mobile SDK without Visual Studio

I'm going to start with why, then how.
Why: I use the open source SharpDevelop to write Windows Mobile .NET applications. Some of the managed libraries that are included in Windows Mobile are not usable without the Windows Mobile SDK files. Microsoft's SDK Installer checks for Visual Studio, and if it not installed, will NOT install the SDK.
How: Download the SDK, open a command prompt, cd to where the SDK was downloaded to and type (making appropriate changes):
Code:
msiexec /a "MSI File.msi" /qb TARGETDIR="Full path to target directory"
For example, lets say that the file is called "WM6 SDK.msi" (which it is not), you downloaded it to "C:\WM SDKs\" and you want to extract it to "C:\WM SDKs\WM6 SDK\", you would type:
Code:
cd C:\WM SDKs
msiexec /a "WM6 SDK.msi" /qb TARGETDIR="C:\WM SDKs\WM6 SDK\"
The DLLs you need to add a references in your project will be under a folder called Designtimereferences
Anyone find this useful?
heyy thanks i found this useful...havent tried it yet, but didnt wanna go about downloading and installing VS if i dont want/need to
thanks man
hasseye said:
heyy thanks i found this useful...havent tried it yet, but didnt wanna go about downloading and installing VS if i dont want/need to
thanks man
Click to expand...
Click to collapse
No problem ... Thanks for the feedback.
cool!
Ultracool Man!
thanks for sharing the information .... no doubt it is useful to alot
Interesting! Anyone know if this enables the SDK to work with Visual Studio Express?
FloatingFatMan said:
Interesting! Anyone know if this enables the SDK to work with Visual Studio Express?
Click to expand...
Click to collapse
I doubt it ... I use SharpDevelop. I have a legal copy of Visual Studio 2003 + 2005, but I use SharpDevelop.
SharpDevelop
Does sharp develop support Compact Framework 3.5?
What are some advantages to using this?
I normally develop with visual Studio 2008 Professional with the Window Mobile 6 SDK.
Wish I would have know about this sooner.
2008 Standard does not support windows mobile development and pro was kind of spendy.
2005 standard supports it.
<slight rant>
Why microsoft? Why would you require pro to make apps, when you need to gain market share. The other platforms are growing because of the availabilty of apps.
</slight rant>
Sharp Develop DOES support CF 3.5, but you need to install .NET CF 3.5 and .NET CF 3.5 Power Toys on the PC to use it ... See Compact Framework on SharpDevelop Wiki.

Java development

Hi All!
I don't know if i am posting on the correct board... but this is the place i think it is suitable for posting my problem.
I am doing PPC application development using J2ME.
However, I found that to run the application, the ppc need a java midlet manager to run my .jar application.
I wonder is there any way for me to pack my classes and src code into a exe or cab file , so that the user can just download and install my app in a few steps, instead of using a midlet manager such as JBed or Jeodek to run it?

VB question

Hallo,
I have the question, if VB (not the sdk, only a program) could run on WM 6.5? I know there is a eMbedded runtime, to use VB, but only for the Version WM 3 ... Does anybody know, if VB program run also with these eMbedded runtime and WM 6.5?
Thanks und regards,
Flo
If the program has been written in VB .NET Compact Framework (Visual Studio 2002 onwards), then it should run on your device, without the need for a runtime, as the .NET CF is the 'runtime' for the program. All mobile devices have one version of .NET CF installed in rom on the device. Later versions can be installed. Even if the program was written for an earlier version of .NET CF than that on your device, if the device can JIT compile it successfully against the version installed then it will run. If serious differences exist between the methods used in the program's CF version and the device, then it will report that you will need a later version installing.
The moral of the story here, is keep your app as 'simple' as possible, and it increases the range of devices on which it will run.
A 'runtime' version of VB was used in Embedded Tools Version 3.0 (VB and EVC 3.0), before EVC 4.0 replaced it. It is no longer on Microsoft's website but other copies of it exist on the web if you search for it.
There is no reason why a program written in Embedded Tools 3.0 should not run on WinMo 6.5, though some of the dll 'import' definitions may be getting a bit long in the tooth. Like a lot of previous development environments, it's just been dumped at the side of the road.

Categories

Resources