Written in Eclipse unable to run in Oracle JDeveloper - java

I have an application written by Java in Ecclipse (Kepler), unsuccesfully tried to run in Oracle JDeveloper: especially during running it comes to prompt-input data, but is being unable to move on. What can I do to fix it?

You need to enable user input in JDeveloper - this might help:
https://blogs.oracle.com/shay/entry/enabling_user_input_when_runni

Related

JavaFX Self-Contained Application Packaging for windows with MySQL

I have a JavaFX 8 application and I am creatin an .exe application bundle to distribute the application to windows users. I am able to create an exe with SQLite as back end following here JavaFX 2 Tutorial - Part 7: Deployment with e(fx)clipse
Now I want to change my whole database to MySQL to increase performance. How can I bind MySQL with deployment package so that MySQL automatically get installed and database created in it. I have googled a lot and still i couldn't find a solution.Even in the above link,author suggested to post the question in SO.
In the interest of completeness, I am using Oracle JDK 1.8.0_45,Inno Setup 5 and Eclipse as my IDE.
Any help would me much appreciated. Thanks....

Java redirect user to java update page

Recently I switched to java 1.8, however this started to cause me troubles, as users that have older versions are unable to start my app. Is there any common method to deal with it, ie tell the user that his jre is outdated for the app and somehow direct it to the required one's download page?
if(!System.getProperty("java.version").startsWith("1.8")) {
// open website
}
How do you open a website? Check in this question.
However, this is code for it. This might not be it what you are looking for
Change compiler level to earlier version in your IDE, this way you can compile your code so that it can be understood by earlier version.
However, if you are using java 8 specific features such as lambdas, this will not work.
Problem with checking version in your program is that for that program to run, they need to have java 8 already.
Only way this could be solved is, running your prgram through a batch file or shell script

Compiling Eclipse project without Eclipse after finishing

I have two questions:
Background: I am trying to create a RESTful Java API for Java back end server which I have already finished.
1) Researched online, and the best way to do this by using Eclipse, is it possible to create a RESTful Java API (using Jersey) without having to use Eclipse? If so how?
2) Let's say I do use Eclipse. After completion, can I transfer the project to a Linux machine and run it there? (if it doesn't have Eclipse). My Linux machine will be the main host, I'm currently working on a windows machine.
Any feedback on this will be greatly appreciated!!
Thanks!

Weblogic Workshop asks to upgrade projects everytime

I am using the Weblogic Workshop for Portlet development. It's built on Eclipse. I upgraded my Eclipse from 3.2 to Weblogic Workshop.
The problem is that everytime I start the Workshop it gives me an upgrade information that I need to upgrade my projects as they were created with older version of Eclipse.
This should have to be done only once, right? Not everytime. Is there a solution?
Text of message:
"Upgrade projects created with older release of Eclipse and/or related plugins."
Thanks,
Sid
Is your project in a source control system that may have made some files read-only? If so, use your source control client to "check out" all project files before opening the project in Eclipse. Then find files that have been changed by upgrade and check them back in.
If that doesn't apply to your situation, take a look at your Error Log view in Eclipse after upgrade. Are there any errors/exceptions in there? You may want to clear the log and repeat to get only the most recent problems. Use information that you gather to open a support ticket at Oracle. The problem that you are describing is likely a bug.

Why do my Swing application windows intermittently not close when the application exits?

Why are my Swing applications not closing when using Netbeans 6.5 on Ubuntu 8.10 with Sun JDK 6. Even the Netbeans tutorials downloaded from the Netbeans website do the same. When I close the application I'm left with a dead window. I then have to manually kill the process. It comes and goes, but I can't figure out what triggers this behavior.
I have also run my applications from the command line terminal using openjdk (6b12-0ubuntu6.1) and sun-java (6-10-0ubuntu2), still no luck. I have noticed when running it through netbeans after trying to close it netbeans still shows the app as running and after manually killing the process my netbeans log prints "Java Result: 137"
Update - 4Mar: I have also tried upgrading to Sun JDK 6u12 and Netbeans 6.7m2. But still no luck.
Update - 4Mar: Ok, after further testing I found that this behavior starts as soon as I add JPA to my application. That makes explains why the JPA tutorial examples on the netbeans website also do the same. I have tried writing an ExitListener to first close the EntityManager but no luck yet. If I delete the EntityManager, Query and List from my Form Panel the applications closes properly again.
make sure you call setDefaultCLoseOperation(JFrame.EXIT_ON_CLOSE);
What minor release of Java 6 are you using?
I was on update 10 I think and having a lot of issues on Ubuntu 8.10, upgrading to .12 helped a lot.
This is caused by using the "System Default" or "GTKLookAndFeel" look and feel. I switched over to "NimbusLookAndFeel" and the issue disappeared.
I have tried all suggestions including Netbeans 6.7 and Java 6.12.
Still unclear as to why this is happening on Ubuntu 8.10.

Categories

Resources