Difference between revisions of "Java"

From DUNE
Jump to navigation Jump to search
(Created page with "=Java= ==Version== <pre> java -XshowSettings:properties -version </pre> ==IDE== Bundled IDEs on Ubuntu: <pre> sudo apt install ubuntu-make </pre> Or, for IntelliJ: <pre> sud...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Java=
+
=Basics=
 
==Version==
 
==Version==
 
<pre>
 
<pre>
 
java -XshowSettings:properties -version
 
java -XshowSettings:properties -version
 
</pre>
 
</pre>
 +
==JDK==
 +
===From deb===
 +
<pre>
 +
sudo apt install ./Downloads/jdk-11.0.1_linux-x64_bin.deb
 +
</pre>
 +
 +
===Through apt-get===
 +
<pre>
 +
sudo apt-get update
 +
sudo apt-get install default-jdk
 +
</pre>
 +
 +
===Location===
 +
Likely location of the JDK:
 +
<pre>
 +
/usr/lib/jvm
 +
</pre>
 +
  
==IDE==
+
 
 +
=IDE=
 
Bundled IDEs on Ubuntu:
 
Bundled IDEs on Ubuntu:
 
<pre>
 
<pre>
Line 18: Line 37:
 
</pre>
 
</pre>
  
==JDK==
+
=Payara=
===From deb===
 
<pre>
 
sudo apt install ./Downloads/jdk-11.0.1_linux-x64_bin.deb
 
</pre>
 
  
===Through apt-get===
 
 
<pre>
 
<pre>
sudo apt-get update
+
./asadmin deploy /home/maxim/Dropbox/netbeans/GettingStarted/dist/GettingStarted.war
sudo apt-get install default-jdk
+
./asadmin redeploy /home/maxim/Dropbox/netbeans/GettingStarted/dist/GettingStarted.war
 +
./asadmin start-domain
 +
./asadmin stop-domain
 +
./asadmin list-applications
 +
./asadmin undeploy
 
</pre>
 
</pre>
  
==Location==
+
An example of a path for a test resource:
Likely location of the JDK:
 
 
<pre>
 
<pre>
/usr/lib/jvm
+
http://localhost:8080/GettingStarted/webresources/get
 
</pre>
 
</pre>
 +
...assuming  webresources are in the application config

Latest revision as of 20:07, 27 November 2018

Basics

Version

java -XshowSettings:properties -version

JDK

From deb

sudo apt install ./Downloads/jdk-11.0.1_linux-x64_bin.deb

Through apt-get

sudo apt-get update
sudo apt-get install default-jdk

Location

Likely location of the JDK:

/usr/lib/jvm


IDE

Bundled IDEs on Ubuntu:

sudo apt install ubuntu-make

Or, for IntelliJ:

sudo add-apt-repository ppa:mmk2410/intellij-idea-community
sudo apt-get update
sudo apt-get install intellij-idea-community

Payara

./asadmin deploy /home/maxim/Dropbox/netbeans/GettingStarted/dist/GettingStarted.war
./asadmin redeploy /home/maxim/Dropbox/netbeans/GettingStarted/dist/GettingStarted.war
./asadmin start-domain
./asadmin stop-domain
./asadmin list-applications
./asadmin undeploy 

An example of a path for a test resource:

http://localhost:8080/GettingStarted/webresources/get

...assuming webresources are in the application config