I have a swing application which works fine as the desktop application but the same application when started using a jnlp, not starting without showing any errors
I have compiled using the classes using Java7 and created a jar and then after creating a jnlp file, started with javaws command as
javaws d:\jnlp1\val.jnlp
Then "Java 7" logo appears showing that the jnlp loading... after some 10 seconds, the javaws exits without any logs or errors
Can somebody let me know how to resolve this....
Thanks in advance
The issue was with the missing jar and when the jar was added, the app works.
Related
I have developed an application in javafx. It works very well on my laptop even when I deploy it and run on my computer, but when I install it on another pc the application starts normally, but does not display any interface (the task bar it is present). When I run the .jar with java -jar monapp.jar command I have an error in console
error shown in the console
Please help.
I cannot get Apache Tomcat to start. I followed the instructions for installing Tomcat on the Mac found at https://www.dev2qa.com/how-to-install-tomcat-in-macos/.
After I type the command to start Tomcat, the response from the command line is that Tomcat has started.
However, when I go to the browser, the default page is not showing up. I further checked to see if the port was being used by using the command
lsof -nP -i4TCP:8080 | grep LISTEN
which showed that no program is using the port. I also read the 'RUNNING.txt' that instructed me on setting the environmental variables, which I did. Any suggestions on why Tomcat is not starting up.
I'm using jdk 1.8.0_202 and Apache Tomcat 9.0.14 that is running of Mac OS High Sierra.
BatChmod
After downloading a fresh version of Tomcat, I use the BatChmod app to alter the file permissions. Tomcat will not launch properly without altering the permissions.
I do not know the command-line equivalent, but here is a screenshot of the settings I have used for years successfully.
Plea for help
If anyone can write the equivalent as a shell script for macOS, please post!
Even better, explain how to wrap such a script as an AppleScript for drag-and-drop execution in Finder.
The problem turned out to be a permissions problem. When I installed Tomcat, I put the folder in the '/Library/Tomcat' directory. Even though the Tomcat files were changed to be executable, the user and group ownership remained the same. To get Tomcat to run, I moved the directory to 'Users/MyUserName/Tomcat'. Once I did that, the default Tomcat page ran.
I have the Oracle Weblogic 12.1.3 and the installation went well and the server was starting successfully. But now It fails to start for some unknown reason. It had problems with the base domain that I created in the setup. So now I'm trying to set up a new domain. But the problem is that the configuration wizard fails to start. I've tried running it with Run as Administrator but the cmd just pops up and disappears. I tried to reinstall the Weblogic server from start and even that didn't solve the problem. The part where the configuration wizard starts I got the same issue. I've also tried running it from command prompt itself but the same thing happens. I have also tried this:
config.cmd -mode=console
and in the cmd it says
Files/Microsoft went wrong this time
and also running it in "text" mode like this
config.sh -mode=console
but it fails to start. and shows the following:
What could be the problem and the fix for this? I'm running Windows 7
There was some discrepancy in the path variable of the environmental variables. Re-arranged the path values and inserted/removed quotes from some values and added that path value containing Files/Microsoft int the end(which was added by Microsoft VS Code). This solved the problem.
I am trying to run the JAR "buildtools.jar" but a message keeps popping up:
The Java JAR file "BuildTools.jar" could not be launched.
in smaller writing underneath:
Check the Console for possible error messages.
The console says
12/31/14 10:19:44.021 AM WindowServer[113]: _CGXGetWindowMovementGroup: Operation on a window 0x14 requiring rights 0x5 by caller Dashboard or 12/31/14 10:19:44.021 AM DashboardClient[2747]: _NXMoveWindow: error moving window (1000)
every time I try to open the jar thing up. I know that my Java is updated because I updated before trying anything with this.
I am trying to create a minecraft server with spigot and if you have a step by step process or any hinters about please tell me but my main focus is opening up the jar.
Unfortunately this isn't the very right place to ask this question. You can ask this question at the Spigot Forums.
Are you using the very latest version of BuildTools? You seem like running on MacOS. You may need to run it with this flag, -Dmac.supported=true(refer to this post). Also, The Java JAR file "BuildTools.jar" could not be launched. most likely, you have a broken Jar file. Try to re-download it from {1}(I need 10 population to post more than 2 links). You will also need JDK(Java Development Kits) but I think it is came by default in MacOS and Git {2}.
After you've installed all required things, you can run the BuildTools from Terminal by java -Dmac.supported=true -jar BuildTools.jar You need to wait few minutes for it to be finished.
I created an java app using SWT and launching from Java Web Start (javaws). I am using the latest Apple Mac OSX Mavericks and the latest 1.7.X jre from Sun for Mac. I am getting an error about Invalid Thread access when creating display object but I have it in the static main method which I thought is the main or first thread.
I have the command line option -XstartOnFirstThread in my jnlp but no success in getting the error solved. I read that Oracle may have taken away the option for javaws.
Any ideas what I can do to fix? I spent some long hours last night till early morning looking for something that worked.
Thanks!
Until it's fixed, here's a work-around that'll # least allow you to open the .jnlp file...
Open Downloads in Finder Select the .jnlp file you want to open Use menu option Open With... Open the file w/ Java Web Start