I am done developing an application that has POS device integrated. This device communicates through Javapos libs and also some dll(the dlls are placed outside the src) plus a jpos.xml placed just inside the src. When the app is executed on the netbeans it works alright with the device, but not when I execute it outside the NetBeans. This is a JavaFX app based on jdk-8. Because of this I just cannot create an installable since the device needs to work with the app. The following is the preview of the directory;
The app project runs smoothly in NetBeans 12.6 smoothly. But when I even try to run it directly from the created dist folder, everything works except the POS device. So Long as it can run within the project convinces me that I can do something to make it work outside NetBeans, but how????
What am I missing. Need help to resolve this.
Related
So, I've made a game using Libgdx in eclipse for android/desktop. The strange thing is that when I export it to a desktop app, it doesn't exports my assets into the JAR(I should put them manually for it to work properly). When I try running my app on android (AVD's and my phone) it uploads the app, but then stops(Unfortunately the game stopped).
http://imgur.com/a/6x8a3 You can see my project structure here.
I've double checked if the "Extract required libraries...." is enabled and if the assets folder is set as a working directory. I also got the latest version of Gradle installed and tested in cmd.
The weird things is that if I save and send my project to a friend of mine, he can export it to desktop and it exports all of the assets and he also can run it on his tablet and AVD - so i thing the problem is not from the code, but from the eclipse/gradle settings.
Any ideas how to fix this problem?
I was trying to package my java application (create an executable) in intelliJ. Everything works well until I generated my executable. The button on the GUI works however when I hit run, it does not do anything. The application works well in intellij environment(not making it as an executable)but not after I generate it as an executable. (Javafx 8)
Whenever I generate an apk or run an application with eclipse. The app runs as expected until you leave the app or crashes. After that it will only display a white background.
The only way to make it run again is to clear cache/uninstall application and run the code again.
So I brought down the issue to my eclipse. It works perfectly on other computers. I am not sure what to do next
Should I just reinstall eclipse?
everyone!
Here's the thing, I've been developing a JavaFX application with JDK 7u17 (That's the one Netbeans is compilling it, anyways) and I haven't had any problem testing it and running it through Netbeans itself. I simply click Run and it goes smoothly.
I'm creating the .jar files and the other (html, jnlp) through Clean-Build using Netbeans and the app does open perfectly when I execute the Jar.
The problem is when I try to navigate through the App, the app consists of 4 scenes (Login, Main, Search and Create) with me being able to log-in and head to the main scene but that's about it. The buttons to go to the search scene or create scene don't do anything nor I get an error saying something crashed (note I'm not using the console since I don't even know how to make it appear in runtime). I simply click them and they do nothing.
As I said earlier, the app runs perfectly when it's ran through Netbeans.
Some more info:
Netbeans Version: 8.0
Compilling Version through Netbeans: 1.7u17
Existing Java versions on System: 1.8u25, 1.7u67 and 1.7u17 (I already tried enabling only 1.7u17)
The App used FXML to switch between Scenes, it works great between LogIn and Main scenes.
What could it possibly be that it works great using Netbeans and break outside Netbeans?
EDIT #1:
According to the console (Thanks to #janih) I'm running Java version 1.7u17, same as Netbeans and it looks like it's working properly. The problem persists when I'm trying to run the same jar by simply doubli clicking it. It stops showing me controls (Third party controls).
I'm not sure but it could be this:
I was trying to run a project through the given .jar and had those results but that very Project was a plain JavaFX Project, not exactly JavaFX FXML Project and my Project uses FXML files to change between Scenes. What I did is redo the Project in FXML and worked perfectly.
Special thanks to #janih for the help.
I have suddenly run into an issue with my build environment and I can't figure out why. I can run my project just fine using gradlew desktop:run however, when I try to run the project from Eclipse using right-click run as desktop application (on the desktop project of course) it suddenly cannot find my pack.atlas file. There is no doubt the file exsts. I have refreshed my eclipse project multiple times and the project runs fine using gradle commandline. It was working fine yesterday. The only thing I can think of that made it mess up was I ran a Gradle command from within the IDE yesterday but I'm not sure how it could have got messed up like this. It is important for me to figure out this issue as I cannot use the Eclipse debugger with this error. Does anyone have any guess as to why Eclipse isn't seeing the assets folder?
Probably your assets from the android project is not correctly linked with the desktop project.
Your linked assets folder from inside the desktop project should look like this:
If it doesn't(or it doesn't exists) ,delete the folder(in the desktop project),and go to the the project properties->java build path->source->link source
browse->[select the asset folder inside the android project]->finish