I am trying to develop a java SE application on a Raspberry Pi, using NetBeans. I have created a platform for the Pi using the Platform Manager, and the platform verifies ok; however, in project properties>Run>Runtime platform, the only option listed is "project platform", despite that fact that when I click "manage platform" next to it, my platform shows up fine.
Does anyone know what could be causing this? I have a feeling something might be misconfigured, or maybe I'm using the wrong type of project or something, but notihng I try seems to work. The project is just a simple java application (created with new project>java>java application), and I am using the latest version of Raspian on the Pi, with the preloaded java installation, located at /usr/lib/jvm/jdk-7-oracle-armhf/jre.
Any help is greatly appreciated.
I had the same problem yesterday, and I solve it!
Main reason is: you need the same JDK for NetBeans and Raspberry.
I use Raspberry PI 3+ (64 bit) with Debian OS (32 bit), JDK 8 has support for ARM 32 bit, I downloaded the last version: "jdk-8u271-linux-arm32-vfp-hflt.tar.gz".
https://www.oracle.com/it/java/technologies/javase/javase-jdk8-downloads.html
Unfortunately, JDK 15 hasen't the 32 bit ARM version...
I also installed the JDK 8 in Windows with NetBeans: "jdk-8u271-windows-x64" and then, you need to change the default JDK in the .conf NetBeans file.
https://www.codejava.net/ides/netbeans/change-jdk-for-netbeans
Now, when you open Properties/run/ you can select the remote platform.
Enjoy,
Best Regards.
Marco
Related
I am trying to set up the Java ME 8 development environment. I am setting up the environment on a Windows 10 64-bit PC to develop a Java ME Embedded 8 application for use on a Raspberry Pi 3 model B. I have set up the Raspberry Pi successfully. However, when setting up the development environment on my Windows PC, Netbeans fails to detect the platform.
I have installed:
Java SE Development Kit 8u221
Java ME SDK 8.3
Netbeans 8.1
I have also tried
Java SE Development Kit 12.0.2, and 8u152
Java ME SDK 8 and 3.4
Netbeans 8.0.2 and 8.2
I have tried downloading and installing the sun java wireless toolkit. I have tried uninstalling and reinstalling in many different orders with different combinations of versions. I have tried changing permissions. I have tried installing the Netbeans plugins automatically and manually in multiple ways and orders. I have also tried setting it up as a Custom CLDC Platform Emulator multiple times but every time Netbeans crashes and breaks, and I have to uninstall it and reinstall again.
I have also checked the release notes of the Java ME SDK 8.3 and it says it supports Windows 10 64-bit.
Screenshot of platform set up steps taken:
Step one of platform set up:
Step Two of platform set up:
Step Three of platform set up:
I know that there are many similar questions on here, but I can assure you I have read all of them, tried their solutions and I have still not found a solution.
Any help any of you can offer me would be greatly appreciated.
SOLUTION: Downloaded an older version of the JDK - jdk 8u11. Then I directed my Java ME SDK 8.3/bin java file to that version instead.
Apologies in advance. I know this is a basic question.
I am new to server administration. I am administering a server where the users do Java development.
They have a Java-based application and do development in Eclipse. Eclipse is 32-bit. The OS is 64-bit.
I recently updated the JDK and JRE on the server. I have both the 64-bit and 32-bit of each installed.
Eclipse ran into an error where it couldn't start after I had updated to the new JRE and JDK. So I took some advice online and updated the -vm path in the Eclipse .INI file to point to the new 32-bit JRE path. It now works.
I have two main questions:
Will updating the JRE and JDK EVER cause an issue with development, or as long as they can open up Eclipse and use at least one version of the JRE or JDK, they will be fine? I guess my fear is that they are going to develop in a certain version and the next version will cause issues down the line.
They develop in 32-bit Eclipse (not sure why they chose 32-bit) but their application runs with 64-bit Java (that is where the path points to for that installation). If something is developed in 32-bit Eclipse can it run with 64-bit Java? Side question: is there a certain advantage with developing with 32-bit Eclipse on a 64-bit system or is it personal choice?
Thanks a lot and cheers!
I guess my fear is that they are going to develop in a certain version and the next version will cause issues down the line.
Java 6 and 7 are end of life; Java 8 code should still be run when Java 9+ rolls out. I've not been aware of any backwards compatibility issues in recent years, it's only forward compatibility that doesn't work (running Java 8 compiled libraries with JRE 7).
They develop in 32-bit Eclipse (not sure why they chose 32-bit) but their application runs with 64-bit Java
The IDE and code run in separate processes. There's no harm in using the 64bit JDK with 32bit editor.
Eclipse 32 bits running on 64 bits JVM
Should I use Eclipse 32bits or 64bits on my new machine?
Will updating the JRE and JDK EVER cause an issue with development...
I believe it technically could render what you developed "obsolete" if you're initially using one JDK with some specs and change for another one with specs that are not "compatible" with what you built so far. By specs, I mean the libraries, tools, etc that the JDK contains. But I would say it would be unlikely that such problems occur. It personally never happened to me. I'd like to have someone with more knowledge give more details though and validate what I'm saying or correct me if I'm wrong.
If something is developed in 32-bit Eclipse can it run with 64-bit
Java?
To my knowledge, there are not related things. In my mind, Eclipse is just your IDE and it allows you to build/compile code using specific JDK (32 or 64 bits). As a matter of fact, you don't even need eclipse to build code but you definitely need a JDK: it's the JDK that give you the tools to compile code that "targets" a specific JRE/JVM and Eclipse is using the tools your JDK provide.
So yes, you can use eclipse 32 bits to build code for a 64 bits JRE.
I am trying to run Eclipse Kepler from a usb drive. It will work when coding but when I come
to run the program it shows
error = 216. This version of %1 is not compatible with version of windows you are running.
Eclipse runs fine at home (windows 8 64bit Java 7) but the issue happens at college (Windows server 32bit java 6) Can anyone shed any light on possible issues please.
The JDK and JRE are installed on the USB device and running Java 7. 32 bit Eclipse is installed to USB also. Is it even possible to run java and eclipse as standalone from a usb?
The error code 216 generally means that there is a problem in the 32/64 bit version mismatch between your applications or OS.As you say your eclipse and OS is 32 bit could you please also check if the JDK you are using is 32 bit ?
after spending a day reading here and there I decided to ask help as I could not find a solution to my problem.
I have to create a java/swt application embedding a browser with full HTML5 support. That works out of the box on both linux and osx with SWT.NONE browser type (using webkit).
Unfortunatelly I have lot of troubles on windows.
First let me say that I'm using SWT 4.2.x on windows 8 64 bit.
To make SWT browser work with webkit I had to install 32bit JVM and manually point to it (as the -d32 switch on default 64bit JVM says that no 32 bit JVM is installed). ALso installed Safari.
And also I had to use 32bit SWT library. WHen finally I got it run I discovered that Safari for windows does not support drag and drop as experienced and stated here:
http://www.w3schools.com/html/html5_draganddrop.asp
So I decided to switch to mozilla. According to Eclipse/SWT documentation I have downloaded and installed XULRunner 1.8.0.1. I have unzipped it into C:\Program Files (x86)\Mozilla\XULRunner\1.8.0.1\xulrunner and run xulrunner --register-user (and also --register-global)
Finally in my code I added
System.setProperty("org.eclipse.swt.browser.DefaultType", "mozilla");
I have also set a global environment variable "MOZILLA_FIVE_HOME" pointing to the same XULRunner installation dir.
But then, when I run my java program (32bit JRE, 32bit SWT) I get
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME may not point at an embeddable GRE]
How can I fix that?
Thanks in advance!
EDIT:
I was running command prompt not as administrator and xulrunner was not registering. Doing as administrator, worked. However I'm still in trouble: XULRunner 1.9.x seems not to support HTML5. For example element.children is not supported.
I managed installing XULRunner 10.0.2 that seems to have the required support. However as soon as I click into my embedded browser, the application just crashes without printing any error on java output console...
I need to find a solution in order to use either ecent version of mozilla or recent version of webkit on windows
Ok, loading XURLRunner 10.0.2 works. The crashing app was due to a stack overflow error in my js code.
I too am trying to embed XULRunner into my eclipse plug-in, with no luck (currently). I came across your answer here. Just wanted to comment that it is not reasonable that you executed
xulrunner --register-user
nor
xulrunner --register-global
on the XULRunner 10.X since according to this post
https://stackoverflow.com/a/7567781/1743693
the support on installing the XULRunner system-wide was removed (which was a good step IMHO)
Trying to execute the aforementioned commands will result
"Error: couldn't parse application.ini"
As for my problem: I keep running into the runtime error:
Can't load library:
C:\Users\david\.swt\lib\win32\x86_64\swt-xulrunner-win32-4236.dll
C:\Users\david\.swt\lib\win32\x86_64\swt-xulrunner-win32.dll: Can't
load IA 32-bit .dll on a AMD 64-bit platform
And I can't figure out where this is coming from.
I'm running a VirtualBox with Windows 8 64bit
If you can elaborate more on what solved your issue with that - i would really appreciate that.
Thanks.
I'm starting to develop my new study project. Because I want and need to run it on different platforms (Linux and Windows) I decide to use Java. Also, because I want to learn something new - I have decided to use Qt Jambi. And here are my problems and doubts. I think that most of it are because I do not understand everything clearly... ;) For now, I develop my application mostly in .Net, and few in Java Swing.
Firstly, I'm using Windows 7 64bit and I want to develop most time on this system. So I've installed the new Eclipse Helios 64bit and Jave SE 64bit. And here is the first concern and problem:
1. It can be stupid, but if I'm using such a configuration, my application will be 32bit or 64bit? :)) It must be 32bit, 64bit can be an option...
2. I've download the Qt Jambi 4.6.3 from this site: http://sourceforge.net/projects/qtjambi/files/ and I can't run it... I've got such error:
java.lang.ExceptionInInitializerError
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:60)
Caused by: java.lang.RuntimeException: Loading library failed, progress so far:
Unpacking .jar file: 'qtjambi-win32-msvc2005-4.6.3.jar'
Checking Archive 'qtjambi-win32-msvc2005-4.6.3.jar'
- skipping because of wrong system: trying to load: 'win32', expected: 'win64'
From this description I thought that the 64bit java and 32bit Qt is a problem. Because there is no Qt Jambi 4.6.3 for 64bit windows I've installed the 32 bit Java SE and Eclipse simultaneusly. But this do not help.
On the other hand, I found 64bit Qt Jambi from Nokia site - the last version with their support and everything works (only Qt Jambi.exe file not run, because could not find the jvm.dll, which is also strange....
What I want is to develop 32bit application in Java with newest stable Qt Jambi (4.6.3) which will run on Linux and Windows (both 32 and 64bit), and I'm developing in on 64bit Windows. My other questions are:
1. From documentation I understand that I need qtjambi.jar and the second one specific for each system because of C++. Is there any way to include all and make application to choose the right one during start up or intallation?
2. And for people developing in Qt - is better to use Eclipse plugin or to use Qt Creator and then juic ?
3. Some recommended books / tutorials will appreciate.
Thank you for patience to read that and for any answers :)
MichaĆ
I had this same problem. To get it to work I have to remove the 64-bit java installations of Java 6 Update 22 and Java SE Developement Kit 6 update 22. Once I removed these Eclipse helios new that it should use the 32 bit java stuff.