04-24-2013 03:54 PM
I am trying to generate my .code file from Ripple or msdos command, i am using this tutorial:
When i execute this command something is going wrong. I think to be some java error
"Executable name has embedded quote, split the arguments"
Anyone ? Thanks
04-25-2013 07:40 AM
This is an issue intruduced by a Java update which changed Runtime.exec. See: http://www.oracle.com/technetwork/java/javase/6u45
This affects the bbwp loader, specifically this java file: https://github.com/blackberry/WebWorks/blob/master
The quick fix to this is to downgrade your JDK install to JDK 6u43 which can be found here: http://www.oracle.com/technetwork/java/javasebusin
The long fix would be to update that java file, rebuild the packager and distribute an updated version of WebWorks.
04-25-2013 08:11 AM
The easy fix is to create a bars directory inside the SDK
Personally I use C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 188.8.131.52\dependencies\bars
Now ZIP up your source and move it into the bars directory
Assuming yours is in the same place as mine the bollowing does a build
..\..\bbwp <zipfile> -d -v -g <signing keys password> -b <buildId>
Note that the -d switch wants to be absent on production builds - it switches on Web Inspector
This can sit in a batch file - mine's called build.bat and that contains
..\..\bbwp %1 -d -v -g <signing key password> -b %2
With that all you need is....
build <zipfile> <buildId>
Similarly for a device / simultor install
..\tools\bin\blackberry-deploy -installApp -device <ip of device/simulator> -password <device password - not needed for simulator> <device|simulator>\<appname>.bar
Again this fits nicely in a batch file as the only thing that changes regularly is <appname>
04-26-2013 10:50 AM
Hey buddy, thanks for support
You mean, update Rapc.class in /SDKversion/bin/ correct ?
After the downgrade i'm trying netbeans IDE to update the java file
04-26-2013 11:01 AM
04-26-2013 11:07 AM
Err - are we in the right forum? This is WebWorks and builds are rather different here
I can tell you without question that the guide I gave works flawlessly - I use the batch files many times a day
Sadly it's only any use for WebWorks
Anyone else reading this - step up a level to Developer Support and pick something to read from there cos there are a lot of other really superb resurces you may not know about (I spent a year here before I tried it)
04-26-2013 11:15 AM
04-26-2013 11:35 AM
Ahh - cos of the very Java specific mention in your Q I replied on assumption
To answer I have jdk1.7.0_17 and it works without any issues at all (32 bit Cordova is a different problem though)
Soz about the mis-understanding
I would try the following steps assuming WebWorks is the desired end result
1) Uninstall Java
2) Downoad 17 JDK from here
5) Try a build
Admittedly this brings you to an earlier JDK than is current but at least it works
I would NOT not recommend this solution (potential as is may be) for anyone who uses Java on a regular basis or does builds for Android on the same dev machine
04-26-2013 12:03 PM
ngoossens as you suggested I already downgrade properly but after update Rapc file, I have had other problems, like this:
Some java errors.
I had used others jdk version, like 7 and updates but like you mentioned, the build not works
have you jdk1.6.0_43 jdk version ?
04-26-2013 12:10 PM
Sorry but I havn't seen this error before. My suggestion would be to try the following:
1. Uninstall Java (JDK and JRE)
2. Uninstall WebWorks
3. Update all environment variables to remove Java paths e.g PATH, JAVA_HOME
5. Reinstall Java (but this time just 6u43)
6. Reinstall WebWorks
7. Add the appropriate paths to your environment variables
8. Retry your build
Everything is working well on my side with Java 6u43.
Best of luck!