Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

I'm setting up a new VM and accidently installed Java 7 instead of Java6 Update 27. When I go to create a new BB project, I get an error processing the BlackBerry_App_Descriptor.XML file. I was able to fix the problem by uninstalling Java 7, and installing Java 6 u26 and then modifying the project to use the JRE6 instead of the JRE7 libraries.

 

Has anyone else had this issue? Is it supported? I didn't look real hard, but I didn't find an official word from RIM on whether Java 7 is supported or not.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
New Developer
Posts: 27
Registered: ‎11-03-2009
My Device: 8320
My Carrier: XL

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

Eclipse Plugin 1.3 is not working with Java 7 quite beautifully just yet but you don't need to uninstall Java 7. Both versions of Java (6 and 7) can coexists happily but you do need to specify which JVM to run with Eclipse. The way to do this is by editing your eclipse.ini file (in the directory where Eclipse Plugin is installed) and add the option -vm before -vmargs option to specify your JRE6 directory. For example on my machine this is the content of the ini file:

 

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jre6/bin/javaw.exe
-vmargs
-Dosgi.framework.extensions=net.rim.ejde.preprocessing.hook
-Xms40m
-Xmx512M
-XX:MaxPermSize=512m

 

For more information cf. http://wiki.eclipse.org/Eclipse.ini

 

Cheers.

EB

Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

Thanks for the confirmation!  Hopefully,  RIM will address the issue shortly! in the mean time, I hope that this post and your instructions will be helpful to other posters .

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
New Developer
Posts: 27
Registered: ‎11-03-2009
My Device: 8320
My Carrier: XL

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

Bill, I'm glad the workarounds helps you. Yes, that's why we are here hoping to benefit from each others :smileyhappy:

 

Cheers.

EB

New Member
Posts: 1
Registered: ‎08-30-2011
My Device: Bold 9900 Touch

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

just a note, when developing on a 64 bit windows 7, the file should look like this (as it's a 32-bit java and eclipse:

 

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vm
C:/Program Files (x86)/Java/jre6/bin/javaw.exe
-vmargs
-Dosgi.framework.extensions=net.rim.ejde.preprocessing.hook
-Xms40m
-Xmx512M
-XX:MaxPermSize=512m


Contributor
Posts: 30
Registered: ‎09-13-2011
My Device: Tourch
My Carrier: Fido

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

Hello,

I am able to get escape from this error.But after restarting eclipse,The error comes is The premature file ends in blackberry app descriptor .xml file.
Do you have any idea what has been gone wrong?

~PG
Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

That's the error I was getting as well. It's a compile error with the app descriptor file. Seems like you need to either run java 6.X alongside java7 using the directions in this thread, or just uninstall java 7 and install java 6.X in its place. Its easier to do the later, but that is up to you.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids
New Developer
Posts: 3
Registered: ‎08-19-2014
My Device: Early 857
My Carrier: T-Mobile

Re: Anyone else have a problem with BB Eclipse Plugin 1.3 and Java 7?

Hi,

thanks for the solution,I applied but I steel have the same problem,the icon is not shown in the downloads menu any help pleaze and thanks