Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Standalone mode Exception in thread "main" java.lang.NoClassDefFoundError

AndyPolJun 24 2011 — edited Jun 24 2011
Hi

I couldn't start APEX Listener in standalone mode, I have problem with java.

C:\Documents and Settings\And>"%ProgramFiles%\Java\jdk1.6.0_26\bin\java" -Dapex.images=C:\oracle\product\apex_402\apex\images -Dapex.port=80 -jar C:\oracle\product\apex_listener.1.1.2.131.15.23\apex.war

Exception in thread "main" java.lang.NoClassDefFoundError: ľjar
Caused by: java.lang.ClassNotFoundException: ľjar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ÔÇôjar. Program will exit.

I have the same error if i tried this:

C:\Documents and Settings\And>"%ProgramFiles%\Java\jdk1.6.0_26\bin\java" -jar c:\


Paths are correct.
Windows XP

Edited by: AndyPol on 2011-06-24 11:02

Comments

Frank Kulash

Hi, User_97XVQ
If you want the sub-string of str from the start of the string up to (but not including) the last substring of hyphen-digits-hyphen, then you can use:

REGEXP_SUBSTR ( str
	      , '(.*)-\d+-'
	      , 1
	      , 1
	      , NULL
	      , 1
	      )

If you'd care to post CREATE TABLE and INSERT statements for the sample data, then I could test it.
If str does not contain a sub-0string of all digits surrounded by hyphens, then the expression above returns NULL.

Frank Kulash

Hi, User_97XVQ
I see that you changed your original message after I replied. Please don't do that: it makes the thread hard to read and your changes easy to miss. Make any corrections and additions in a new reply, at the end of the thread.
If tst is a string containing one or more digits, immediately preceded and followed by a hyphen, then

REGEXP_SUBSTR ( tst
	      , '(.*?)-\d+-'
	      , 1
	      , 1
	      , NULL
	      , 1
	      )

returns the sub-string before the first occurrence of the hyphen-digits-hyphen pattern. The only change for your new requirements is the '?' in the second argument, making '.*' non-greedy (that is, matching as little as possible when there is a choice).
As before, the expression returns NULL if tst does not contain a hyphen-digits-hyphen pattern.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 22 2011
Added on Jun 24 2011
1 comment
229 views