Unexplainable differences between Java on OSX and Blade VPS - java

I'm developing a Tomcat Web Application. I'm using apache-tomcat-9.0.10 on both my development machine (Mac OS High Sierra) and my Blade VPS (Debian 8.1). Both give the following output on java -version:
Local:
java version "10.0.1" 2018-04-17 Java(TM) SE Runtime Environment 18.3
(build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build
10.0.1+10, mixed mode) Evert-Jans-MacBook-Pro:apache-tomcat-9.0.10
Remote:
java version "10.0.1" 2018-04-17 Java(TM) SE Runtime Environment 18.3
(build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build
10.0.1+10, mixed mode)
The Java settings are equal on both my Local machine and the remote VPS.
Yet, Locally it works but the remote server gives a 'page can’t be found error'.
Any ideas? Please let me know.

I solved the issue. I didn't upload the Lucene index which the app expected under/usr/local/index/.
Apache Tomcat could have given a more descriptive error than 404, which caused me to go and seek in the wrong direction.

Related

topcoder java client blocked by java security

I'm using javaws ContestAppletProd.jnlp to run the latest topcoder client on ubuntu 16.04.
java version is
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode).
I've added http://www.topcoder.com to the exception site list in java security control panel, but it doesn't work.
This is the trace log file.

Java Performance on Macbook Pro (not GUI)

I have some Java code to fetch data from SQLite and do some linguistic processing (lemmatization) with the data and write the modified data into another SQLite datebase. The database tables have indexes, so the query should be fast although the data is joined.
The small program shall produce a database being used in an iPhone app.
On my Ubuntu PC (14.04.3 LTS) this program runs fast, but on my Macbook Pro (OS X El Capitan 10.11) it runs 10 or more times slower.
java -version on Ubuntu PC:
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
java -version on Macbook:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
I also pointed eclipse to jdk 7 in Java->Installed JREs to have the same version as on the Ubuntu PC
The java command generated by eclipse is the same on both machines:
/path/to/jdk7/java -Dfile.encoding=UTF-8 -classpath
... many jars ...
my.package.myclass
How to get the same speed on the Macbook? Is the java implementation just not that fast under Mac OS?

What are the supported Java FX Mouse events on ARM Architecture?

I have compiled a Java FX application on windows platform using e(fx)clipse build
JDK version on Windows:
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
I need to deploy the same application on Raspberry Pi. It sports an ARM v6 Architecture.
I am using 2014-12-24-wheezy-raspbian disribution with 256/256MB Memory split.
Java build tested on the platform:
Default package:
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
Java SE Embedded
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
Issues Facing:
Java FX runs in Full Screen Mode with blocking all the other displays
Mouse.Drag events don't work.
Dialog, blocks the application.
Windows close,minimize options are not visible/disabled
Solutions tried
Changed the Memory split
Result: Nicer FX Graphics
Added dwg_ota.speed=1 (Changes USB bus speed from 480Mb/s to 12Mb/s)
Result: No Change
Is there any way where in I can get Mouse Drag events to work? Please do suggest. Where should I report the above bugs regarding Java FX on ARM Platform?

The application Ecliplise can't open - Mac OS - Yosemite

I'm running OSX Yosemite, and I just downloaded latest adt bundle and my java version is
java version "1.8.0_25" Java(TM) SE Runtime Environment (build
1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
,at the first when I tried to open eclipse , he asks me to install Java 6 http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
, but after the installtion it gives me this message "The application Ecliplise can't opened"
Please tell me what to do, Thanks

Java URL("file://") doesn't work on Windows XP

For some reason the following code doesn't work on Windows XP.
new URL("file://" + tempfile.getAbsolutePath());
I'm using Java 1.6.
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
However, the same code just works fine in OS X (Lion) and Java 1.6
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
Linux (Linux 2.6.32-38-generic #83-Ubuntu x86_64 GNU/Linux) with Java 1.6
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Based on this the above code should work.
On the localhost the URL looks like:
file:///Folder
Very important the third slash...
On Windows the Folder looks like:
file:///C:/path/
What is the problem with File.toURI().toURL()? Why reinvent the wheel?
The following code should avoid all the hassles
new File(tempfile.getAbsolutePath()).toURI().toURL()

Categories