Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Monday, June 6, 2016

JAVA_HOME Variable in Windows

Setting the JAVA_HOME Variable in Windows


The error : 

The registry refers to a nonexistent java runtime enviorement installation or the runtime is currupted.

The system cannot find the path specified.



After you've installed Java in Windows, you must set the  JAVA_HOME environment variable to point to the Java installation directory.


If you installed the Java Development Kit (JDK) you'll be setting the JAVA_HOME environment variable. If you installed the Java Runtime Environment (JRE) you will follow the same steps but set the JRE_HOME environment variable instead. 


Set the JAVA_HOME Variable

To set the JAVA_HOME variable:
  1. Find out where Java is installed. If you didn't change the path during installation, it will be something like this:
    C:\Program Files\Java\jdk1.8.0_65
  2. In Windows 7 right click My Computer and select Properties > Advanced.
    In Windows 8 go to Control Panel > System > Advanced System Settings.
  3. Click the Environment Variables button.
  4. Under System Variables, click New.
  5. In the Variable Name field, enter:
    • JAVA_HOME if you installed the JDK (Java Development Kit)
      or
    • JRE_HOME if you installed the JRE (Java Runtime Environment) 
  6. In the Variable Value field, enter your JDK or JRE installation path.
    If the path contains spaces, use the shortened path name, for example C:\Progra~1\Java\jdk1.8.0_65
  7. Click OK and Apply Changes as prompted.


Note for Windows users on 64-bit systems
Progra~1 = 'Program Files'
Progra~2 = 'Program Files(x86)'


JAVA_HOME Variable in Windows

Setting the JAVA_HOME Variable in Windows


The error : 

The registry refers to a nonexistent java runtime enviorement installation or the runtime is currupted.

The system cannot find the path specified.



After you've installed Java in Windows, you must set the  JAVA_HOME environment variable to point to the Java installation directory.


If you installed the Java Development Kit (JDK) you'll be setting the JAVA_HOME environment variable. If you installed the Java Runtime Environment (JRE) you will follow the same steps but set the JRE_HOME environment variable instead. 


Set the JAVA_HOME Variable

To set the JAVA_HOME variable:
  1. Find out where Java is installed. If you didn't change the path during installation, it will be something like this:
    C:\Program Files\Java\jdk1.8.0_65
  2. In Windows 7 right click My Computer and select Properties > Advanced.
    In Windows 8 go to Control Panel > System > Advanced System Settings.
  3. Click the Environment Variables button.
  4. Under System Variables, click New.
  5. In the Variable Name field, enter:
    • JAVA_HOME if you installed the JDK (Java Development Kit)
      or
    • JRE_HOME if you installed the JRE (Java Runtime Environment) 
  6. In the Variable Value field, enter your JDK or JRE installation path.
    If the path contains spaces, use the shortened path name, for example C:\Progra~1\Java\jdk1.8.0_65
  7. Click OK and Apply Changes as prompted.


Note for Windows users on 64-bit systems
Progra~1 = 'Program Files'
Progra~2 = 'Program Files(x86)'


Wednesday, December 12, 2012

JAVA_HOME on Linux Bash



How to Set JAVA_HOME / PATH variables Under Linux Bash Profile


If the command echo $JAVA_HOME returns no result , 
it means that JAVA has no HOME and could not work properly
in Palo OLAP Server with embedded Tomcat .

The following command shows the path to java executable on Linux : 
# which java
WHICH command result on Ubuntu , Mint :
/usr/bin/java

after EXPORT command : 
export JAVA_HOME=/usr/bin/java
if we check again , JAVA has a HOME
# echo $JAVA_HOME
 /usr/bin/java

if I'm running again the script setclasspath.sh from 
/opt/jedox/ps/tomcat/bin
the result is :
The BASEDIR environment variable is not defined

This environment variable is needed to run this program

Tomcat & catalina issues

The error message says you have to set the environment variable BASEDIR.
Set it to the Tomcat installation directory, for example:


export BASEDIR=/usr/local/tomcat



echo $BASEDIR
/usr/local/tomcat


Wednesday, October 5, 2011

JavaFX 2.0 Java EE 7


JavaFX 2.0, Java 9 head JavaOne keynote


The forthcoming Java EE (Enterprise Edition) 7 release, meanwhile, has a cloud computing bent and would enable pruning of capabilities such as JAX-RX (Java API for Restful Web Services) by platform vendors if they so choose.


JavaFX, a lagging rival to Adobe Flash and Microsoft Silverlight for the consumer Web and mobile devices, is now looking to carve out a niche in Java shops and enterprise client applications. With version 2.0, JavaFX becomes a set of Java libraries and APIs.

Wednesday, August 3, 2011

Eclipse INDIGO Subversion - Google.Code


Subversion ( Subversive ) installation instructions


http://eclipse.org/downloads/
Eclipse Classic does not have Marketplace;
It's better to be used Eclipse IDE for Java Developers

1. Eclipse Marketplace


2.
    Find SUBVERSION

3.
Install Subversive


4.
After restart : check SVN Kit



And now , SUBVERSION ( Subversive ) is installed ;
Instead of Subversive , on Win32 - an alternative is SUBCLIPSE .

Now let's import in Eclipse a project from Google Code :

5.

File -> Import -> SVN -> Project from SVN


Let's check out :
  Enter 
     http://jtelmon.googlecode.com/svn 
  in the URL and then click BROWSE :  






We've just imported from code.Google.com a project ;
With a user and password one can modify the project and commit updates .




~ ~ ~ 
         Android SDK for Eclipse on Ubuntu : 

How to Install the Android SDK and Eclipse Indigo on Ubuntu



Wednesday, March 16, 2011

ORA-WORA and ADF Mobile

ORAcle and "Write Once Run Anywhere"

Of course, in practice, WORA  has always been "write once, TEST everywhere"
you intended to deploy your chosen application.


   The Application Development Framework (ADF) Mobile Client
is an extension of Oracle ADF and can be used to design applications
for Blackberries and smartphones with Windows Mobile ...

... but Microsoft no longer develops Windows Mobile ...




Why not making peace with Google and create ADF Mobile Client for Android
and everybody will be happy !

Google has taken the mobile market by storm with ANDROID
which will become THE mobile development platform in the near future ...

ORACLE should propose a deal to GOOGLE with this IDEEA :
 - Do not export DALVIK to other mobile operating systems and
we will drop the Java lawsuit 

Oracle announces mobile app development tools

 The software is designed to work with the Oracle Fusion framework but can also be used with other web services, Oracle said.

 

Does Write Once Run Anywhere Work?

" Write Once, Run Anywhere, a slogan created by Sun to evangelize the virtues of the Java Platform, is a controversial approach to software development.  Write Once, Run Anywhere (WORA) is accomplished through an abstraction layer between the 'compiled code' and the operating system and processor.  This abstraction usually takes the form of a Virtual Machine or Runtime, such as the Java Virtual Machine  ( JVM ) Microsoft's Common Language Runtime (CLR), Flash Player (or Air runtime) "

Mobile Application Development with Oracle ADF Mobile

(New) Demo: Getting Started with ADF Mobile Client

"The developers have pretty much the same experience they would have if they were building JSF Web applications, including WYSYWIG page editors, components they can bring onto the page, declarative date binding and expression language, but instead of building out a Web page, they've building out a metadata definition for a native user interface on the mobile device."

#jdeveloper , #ADF , #mobiledev

"Based on the same programming paradigm as Java Server Faces (JSF), Oracle ADF Mobile Client delivers a highly productive, declarative development environment where the developer can work with a mix of visual editing tools and Java code to define a device-independent representation of the application."

Oracle first announced the mobile client in October 2009, and issued a technical preview in April 2010.