Difference between revisions of "Java"

From DUNE
Jump to navigation Jump to search
Line 24: Line 24:
  
  
==IDE==
+
=IDE=
 
Bundled IDEs on Ubuntu:
 
Bundled IDEs on Ubuntu:
 
<pre>
 
<pre>
Line 35: Line 35:
 
sudo apt-get update
 
sudo apt-get update
 
sudo apt-get install intellij-idea-community
 
sudo apt-get install intellij-idea-community
 +
</pre>
 +
 +
=Payara=
 +
 +
<pre>
 +
./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
 
</pre>
 
</pre>

Revision as of 00:13, 17 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