Codenameone designer doesnt launch from eclipse - codenameone

IDE: Eclipse Luna
Desktop OS: Windows Server 2008 R2 Enterprise
Simulator : NA/default
Device: NA/default
Java: jdk1.8.0_40
Good afternoon everybody. I am a newbie and downloaded codenameone for the first time as a plugin in Eclipse IDE. The install went well, and I launched a new project, with Native theme and Hello World template. The project got created fine however, when I try to launch theme.res nothing happens. I dont see any errors or any signs of codenameone designer launching.
I searched through the forums and couldnt find anyone with similar problem.
What I have done to resolve (unsuccessfully):
Tried creating other projects with different themes and templates.
Tried uninstalling codenameone plugin and reinstalling it
Tried doing everything in a new workspace.
I have tried launching the designer jar from command line and that works:
java -Xmx256m -jar ~/.codenameone/designer_1.jar (This works)
I have double checked and eclipse is running the same version of JVM as commandline.
Nothing I do in eclipse has worked.
Could you please guide ?
Thanks

You need to switch the VM Eclipse is using to JDK 1.7 this also means the VM used to launch eclipse itself in the eclipse.ini file.

Related

Resource "/projectnamehere/.settings' already exists in Eclipse

I downloaded the newest version of Eclipse on an M1 Macbook Pro.
I downloaded the plugin from the Eclipse Marketplace. It's version 6.0
I made a new project, and when I get to the "finish" screen, I get this error:
Then, if I click finish again I get this error, which is the error that keeps showing up no matter how many times I click finish:
Some stuff ends up actually getting built in the project:
My professor doesn't know how to fix it, and there's nothing on Google. How can I make this work normally like it's supposed to? Thanks :)
The plugin is no longer supported for newer versions of Eclipse as we migrated to maven a while back.
You have two options
Use an old Intel version of Eclipse that predated the change to work with a legacy project.
Migrate the project to a Maven project which will work with all IDEs and doesn't use the plugin at all.

Problems installing Codename One plugin in NetBeans

I have a ploblem during the installation of Codename One plugin in Netbeans.
After the installation it says to restart the IDE.
After IDE restarts it's like if I've never installed the plugin: it asks me to install from the beginning.
NetBeans 12 on Windows 10 Pro.
NetBeans 12 changed a lot about the way plugins should be built and our plugin is a bit out of date by now.
However, we won't be updating it since it's no longer necessary as we migrated to maven. You can learn about that here: https://www.codenameone.com/blog/moving-to-maven.html

Demo projects not building

Hi Ive been able to build my own hello project but ALL the demo projects fail with odd build error they cant find source which is in the Hello project see pics. Must be settings in Netbeans Project but I cant find appreciate any advice. Error /home/alistair/netbeansprojects/codenameone/CameraDemo/build.xml:51: taskdef class com.codename1.build.client.CodeNameOneBuildTask cannot be found
using the classloader AntClassLoader[]:
http://i.stack.imgur.com/gBkeb.png
http://i.stack.imgur.com/YpYIM.png
I got this error when moving a project to a new computer. On the new machine, I had installed JDK 9, whereas on the old machine I had been working with Java 1.8. I downloaded Java 1.8 and selected it as the project SDK, and the error went away.

package 'manifest designer package' failed to load Windows Phone SDK 8.0

I am very new to Windows Phone Development therefore I do not know much about it....
I installed Visual Studio 2012 in my Windows 8.1 64x Operating system after installation I downloaded Windows phone sdk 8.0 iso and installed it too ...
I watch tutorial and performs those steps , one of those tutorial's steps to double click WMAppManifiest.xml to change the icon of Windows Phone Apps but When I double Click On this it gives following error
package 'manifest designer package' failed to load
and Also AppManifest.xml is not loading and it gives this error
Visual Studio has encounterd an unexpected error
i have uninstalled all and re-install al of this including sdk and vs2012 but still it gives error not in one project but each time I tried to goto NewProject and select windows phone App and without doing anything I tried to open those files but it gives error
Please Help me ....
NOTE: I was working on a Apache Cordova app in VS 2013. Try this it might help
I had a similar problem, but in my case it was to remove the text on the tile as it was too long for the tile. Each time I made a change to the platforms/wp8/Properties/WMAppManifest.xml it was overwritten each time when I Rebuilt the app.
I followed the below guide:
Place the custom WMAppManifest.xml file in the res/native/wp8/Properties folder. Use the generated version of the file in the platforms/wp8/Properties folder after building a Debug configuration of the project for Windows Phone 8.
Refer to this documentation:
https://msdn.microsoft.com/en-us/library/dn757053.aspx.

Google App Engine - recompile GWT module

I've created Google App Engine project in Java using Eclipse following the book Beginning Java Google App Engine
Before I bought this book I had created projects with unchecked option 'Use Google Web Toolkit' but for this project I checked it (following the book)
Eclipse generated several files for me and I run my applications, copy link to Web Browser (http://localhost:8888) and it gives me an error:
GWT module name_of_my_project may need to be (re)complied
I work on Ubuntu 10.04 (I was testing my application using Firefox and Chromium) and I was trying run my application on Windows XP (using the same Web Browsers) with the same effect (just one difference - Google Chrome made me install Web Toolkit...so I did it but it still gives the same error)
Thanks in advance :)
I get the same error message at unexpected times using development on IntelliJ with Chrome. The message still appears when I stop and start development mode. The problem is fixed after I delete the compiled files (class files, js files) in the out folder. On eclipse, you can try deleting files and folders generated in the war folder (delete the folder that has the project name, if it exists, and the classes folder under /war/WEB-INF/classes). Hope this helps.
Check in your "Java Build Path" if you have the correct Default output folder (something like /target/project-name/WEB-INF/classes).
In Eclipse, do a "Clean Build".
Click on the google blue button in the Eclipse menu and select "GWT Compile Project..."
Make sure the GWT plugin is compiling your project by checking the compiler output. The GWT compiler outputs lots of things, for example you will always see something like "Compiling 6 permutations.... Compiling permutation 0..."
If you still have problems, try this page on setting up Eclipse with GWT: http://code.google.com/webtoolkit/usingeclipse.html
Thanks for your comments and suggestions. I re-installed Eclipse on Ubuntu and I installed plugin one more time and it works :)
So, be careful which version of Eclipse you use - Eclipse 3.4 has problem with GWT.

Resources