Reset local OC4J in JDeveloper 10

If you get an error message trying to start JMS-Server in JDeveloper like:

(SEVERE) Failed to set the internal configuration of the OC4J JMS Server with:

  1. Firstly check whether the port (default 9127) is not used/locked by other app.
  2. Try deleting the contents in your local OC4J path:

    When OC4J will start again, it will reset the local configurations and let JMS-Server start as normal.



Set default language for JDeveloper IDE

JDeveloper picks-up the default locale language from the OS.

To change this and force JDev to a specific language:

  1. Open JDEV_HOME/jdev/bin/jdev.conf
  2. Add the following lines for English:
    AddVMOption -Duser.language=en

This will show all warnings and message details in English.



how to move a JDeveloper folder correctly

To move a JDeveloper folder to a new location/machine:

  1. First find and edit the following files to the new path:
  2. Change all the paths referencing the old JDeveloper folder with the new path i.e.
    old path is: c:\jdev_10.1.3.4
    and new path is: c:\user\jdev10.1.3.4,
    so everything should change to: c:\user\jdev10.1.3.4

how to install eVB 3.0 on Windows 7

To install eVB 3.0 (embedded visual basic) on Windows 7:

You first need: pocket PC 2002 SDK, eVB 3.0, vb runtimes 6.0

  1. Control Panel > User Accounts > User Accounts > Change User Account Control settings
  2. Lower the ‘Notify’ bar to ‘Never Notify’ and click OK
  3. Restart your system
  4. install vb runtimes 6.0
  5. install Pocket PC 2002 SDK
  6. install eVB (best with admin privileges)

Start eVB, it should work as normal.

how to use jar file commands

To extract a jar file from the command-line:

  • jar xf myapp.jar -extract a jar-file into jar-file-name-dir (within same dir)
  • jar xf myapp.jar file1 file2 file3 -extractspecific files only
  • jar cf myapp.jar file1 file2 dir1 -create a jar-file from a path(s)
  • jar tf myapp.jar -list contents of a jar-file
  • jre -cp myapp.jar MyMainClass -execute main class within a jar-file
  • java -jar myapp.jar