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?
Related
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.
I have been having some major issues when I try to run a new Swing application. I am using NetBeans 8.1, JDK version 1.8 and OS Windows 10.
So every time I try to open a new Swing project (doesn't matter if it's just the app project or an EA) and I run it, NetBeans deploys it correctly but the Swing window doesn't open and in the status bar of NetBeans it just shows running. I wait for several minutes and then I have to stop the build because nothing happens. When I faced this situation before I uninstalled NetBeans and Java and reinstall them, and it's fixed. But I don't want to uninstall and install everything again when I want to open a new project. I am right now learning about Swing. If that project has a Web version, it works fine. I've put my laptop on Airplane mode so WiFi is disabled (a friend told me to do this) but with no luck.
So this is my IDE and it says "Running" in the status bar when I run the project using the Swing project, but the application window is not opened
enter image description here
You should debug this application, maybe one line code is error or not complete, ... can stop your application. This status bar show is running maybe your application not dispose then it still running
I've tried to create a new project on android and ran it without any problem in my emulator.
I added the google-play-service library in my eclipse workbench and linked it to my project. Then I tried to run it again and my eclipse started loading... Then the progress bar stopped to move, then I saw eclipse took 80% of my CPU capacity! So I shut it down and tried again, same thing happened.
For your info I imported the google-play-service library from
sdk\extras\google\google_play_services\libproject\google-play-services_lib
and I still have not touched the example code in the MainActivity.java
I solved this issue on my own PC (Windows) by allocating more memory for Eclipse. Add this to your properties if you're on Windows (you can give the same command line arguments in linux).
Taken from this SO Post
I am new to java. I have just got Eclipse working (somehow) lol. well my programs are running fine until-
I save a program, close out of eclipse, and re-open the program. when I try to run it the same way that works for all the other programs, I am getting a message asking to "run with ant build". for some reason eclipse will not run any of my programs that have been closed out and re-opened, but will run new programs just fine.
does anyone know how to fix this???
thanks
EDIT- i would post an image, but I do not have at least 10 reputation.. what is happening is I go to open file => C:\Documents and Settings\xxxxxx\workspace\t\src\t (t is the program's name) and then I open it, and run it. When I run it (either F11 or the run button) it pops up a window saying "select what to run as", and the only options are 2 ant build icons. Running as ant build does not work, because this isn't an antbuild file. I created a new program just to test, (from scratch) and everything compiles and runs fine...
everything is compiling and running fine on NEW programs, but I just tried opening a program I created yesterday, and it is giving me the error mentioned above.. it was running perfectly fine yesterday. also, I have JDK installed at home, and I am getting this same exact problem.. JDK isn't the source.
EDIT- i have 10 rep now. Here's an image of what was happening before the fix
" what is happening is I go to open file.."
You don't want to open the file. You want to open the project
Click on File menu
Click on import
Click on General
Select on Existing Projects into Workspace. CLlick Next
Click Browse to search from your project
Select the Project, Click OK
Click Finish
The project should now show in your package explorer and you can then run it.
To run program JRE is enough.
If you want to build project you need JDK.
Eclipse is a Java application and it works without JDK,but it needs JDK to build a project.
Eclipse is not compiler or something like that, it's only an IDE.
I'm having a problem with my eclipse i have edited my app and it's ready with no error shows but now when i run it into my emulator it runs another app i have in my eclipse so i deleted the app and still i run the application i want in the eclipse and still it shows the old app that i didn't even ask to install it in my emulator so it's installing an app that i don't have at first place in my eclipse i don't know how it is possible i cleaned my project and still the problem is there and changed my emulator still its install the old app for me
uninstall the app from the emulator and check in your run configuration about the running app and try with new emulator
Be sure you have selected in package explorer the app you want to run. Try to unistall the app from the emulator or create a new device on emulator. Hope this help.
Check the Run configuration: Run->Run configuration. Under the Android tab, choose your project. If you run in Debug, you have similar option too.
Another similar case I saw, is that some application was installed, but the name was not updated. Verify the names of your application in both the strings.xml and the Manifest. (If you create a project by duplicating another one, it might be the problem).