StringIndexOutOfBoundsException When Running a JSP Page From JDev on Ubuntu (Doc ID 601339.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: and later   [Release: and later ]
Linux x86
Linux x86-64
Ubuntu 7.10


You have installed JDeveloper on a Linux Ubuntu machine.
You downloaded JDeveloper from the "Base Install" on the OTN download page.
You performed the steps 3.1 and 3.2 detailed in the Installation Guide:

3.1 Configuring Java SDK in JDeveloper

The file jdev.conf contains the line:
SetJavaHome /user1/Progs/jdk/jdk1.5.0_05

3.2 Modifying Permissions on Linux and UNIX Platforms

The group permissions are rwx and the logged in user is in the group that owns JDeveloper.

You can use JDeveloper to develop your application.
It works without any problem.
However, you you try to run any of your JSP pages, it fails with the following error message:
java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.substring(
at oracle.jdeveloper.compiler.OjcConfiguration.getSource(
at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.ensureJavaCompilerIsSet(
at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.configureAll(
at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(
at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(
at oracle.ide.runner.RunProcess.startTarget(
at oracle.jdeveloper.runner.JRunProcess.startTarget(
at oracle.ide.runner.RunProcess$2$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(
#### Embedded OC4J Server could not be started up.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms