Problems installing Codename One plugin in NetBeans - codenameone

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

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.

Codename One - Eclipse Plugin

I get the following install error for the codename one eclips plugin.
Any suggestions on how to resolve this.
Cheers
Make sure you are using a version of Eclipse for Java developers. It seems the Java editor functionality isn't available in your copy of eclipse.
I recommend using a recent version of JDK 1.8 and a Eclipse Neon 2 or newer (e.g. Oxygen etc.).

the codenameon demos under netbean 3.2 do not work

IDE: NetBeans 8.2
Windows 7
I installed codenameone under NB 8.2 and can't get a demo to load. They all say 'The project source/binary format is older than minimal supported one (1.6).'
Also can't get the codenameone plugin to update.
any suggestions? thanks.
There was a problem with older plugins which should work for 3.5.6 or newer.
As a workaround make sure the project is set to use Java 8 and open the build.xml file. Replace all references to 1.5 to 1.8.
This resolved my "Resolve Project Problems", but I still get this error when running the ToDoApp (and others) :
/Users/nnnnn/netbeans-tutorial/All-codenameone-demos/ToDoApp/build.xml:51: taskdef class com.codename1.build.client.CodeNameOneBuildTask cannot be found
using the classloader AntClassLoader[]
none of these hints helped me: https://www.adam-bien.com/roller/abien/entry/how_to_fix_the_libs
MacOs 10.14.6, Netbeans 12.2,
Now I came a little longer as I in preferences, Java added, Add JAR/ZIP:
.codenameone/CodeNameOneBuildClient.jar

Google App Engine on NetBeans 7

Is there any pluggin or alternative way to use Google App Engine on Netbeans 7?
deploy
code completion
...
I managed to get it to work with netbeans 7.0 by using the kenai plugin for Netbeans 6.9: http://kenai.com/downloads/nbappengine/NetBeans69/updates.xml.
Here you have the installation instructions. Of course: replace the links proposed with the link I provided (which is not listed on the page itself... Actually I found it by removing /Latest_NetBeans68/updates.xml from the other path).
I think it stopped working with 7.0.1 though.
A new plugin version for NetBeans 7.2 is available.
The settings file is located at
https://kenai.com/downloads/nbappengine/NetBeans7.2/updates.xml
Installation instructions (for older versions) are here.

Google App Engine .jsp Problem

I just created a .jsp file in my google app engine project. How to resolve the below error.
Description Resource Path Location Type
Your project must be configured to use a JDK in order to use JSPs
proj1.jsp
/Proj1/war Unknown Google App Engine Problem
Kindly let me know.
it is the error. In order to compile jsp you need a jdk installed in your system. If you are running on a JRE you will get this error. Also make sure that your project has been configured with a jdk in it's path.
For sake of improving answers
stack over flow reference
.jsp file not working for Google App Engine guestbook tutorial
the accepted answer was a year ago
updated answer from reference
In the end I seem to have wasted my bounty as I found the solution (with a little help) myself.
The problem arose because I was unfamiliar with Eclipse. When I found the more verbose error message Your project must be configured to use a JDK in order to use JSPs guestbook.jsp.
It was located in a tab called 'Markers' in pane found at the bottom of the Eclipse window.
It seems that Eclipse wasn't aware that I had installed the JDK.
In Eclipse I went to menu Window->Preferences->Java->Installed JREs . Eclipse had only one entry there named jre6 I clicked the Add... button Chose Standard VM and browsed to the base directory of the jdk (in my case C:\Program Files\Java\jdk1.6.0_20)
I rebuilt my project but the same error was there. I had forgotten to check the box that tells Eclipse to use the jdk instead of the jre.
As soon as I did that Eclipse rebuilt my project and the error was gone.
To solve this problem, first please confirm that JDK is already install on your computer. If it not available, go to Oracle JDK hompage to download and install it.
Then follow some steps to config JDK.
When JDK is configured, return eclipse and build project if you still get current error, I decide you are using JRE instead JDK. Choose Prefrences - Java - Install JRE - Un-check JRE and check JDK
Rebuild project
Hope this help!
Set JDK as your Installed JREs in Eclipse.
In Eclipse Window->Preference->Java->Installed JREs
Click on Add Button | Select VM ->Add JRE
Select Folder of jdk as "JRE Home" Directory.
Click OK.
Build your GAE Project
JFTR:
For those who use Ubuntu and OpenJDK, and may come here looking for help on the same issue: EVEN when it is called Open*JDK* (i.e. java-6-openjdk) actually you may have installed only the JRE part since they are on different packages, so you need to install also the JDK. For version 6 this is done via:
$ sudo apt-get install openjdk-6-jdk
Note that you may have yet an openjdk-6-jre in your system.
If your problem persist, you must sure that in your project use JDK library. Go to your project->click right->Build Path->Configure Build Path->Add library->JRE System Library->Select "Workspace default JRE (jdk1...)"->Finish, and in "Order and Export" UP your JDK Library above JRE Library. When you save your proyect it´s ok.

Resources