Big Moose Saloon
 Search | Java FAQ | Recent Topics Register / Login

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

i am using jboss 3.2.7 and while running it getting below problem. I copied required jars and dlls (ojdbc14,ocijdbc10.dll) to that java places. Please help me out

No Kaustubh No Fun, Know Kaustubh Know Fun..
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8910

107

Please post the entire exception stacktrace instead of that attached image. While posting the stacktrace, wrap it in a code block for better formatting.

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8910

107

I don't see any problem in the logs you posted. What exactly are you running into? You'll have to explain more about what you are trying to do and what the problem is, if you need someone to help you.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Soory ... here comes the problem

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5700

1

Looking at line 9, this is your library path:

-Djava.library.path=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v

Does the file C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v\ocijdbc10.dll exist?

Have you tried setting the library path to:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v

Sometimes back slashes are treated as escape characters, so using forward slashes is often preferred.

Final thought. Most DLLs use various Windows DLLs located in c:\windows and c:\windows\system32. You should ensure that those directories are also in the library path:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v;c:/windows;c:/windows/system32

JBoss In Action
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Not able to rectify the error .. pasting data under my run file below. please help. Thanks

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8910

107

You did not answer any of the questions which Peter asked and the configuration you posted conflicts some of the values that you posted earlier for java.library.path.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Peter Johnson wrote:Looking at line 9, this is your library path:

-Djava.library.path=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v

Does the file C:\oraclexe\app\oracle\product\10.2.0\server\BIN\v\ocijdbc10.dll exist?

Have you tried setting the library path to:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v

Sometimes back slashes are treated as escape characters, so using forward slashes is often preferred.

Final thought. Most DLLs use various Windows DLLs located in c:\windows and c:\windows\system32. You should ensure that those directories are also in the library path:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v;c:/windows;c:/windows/system32

Soory Peter, Well I check the metioned path but not able to find C:/oraclexe/app/oracle/product/10.2.0/server/BIN/v it is only upto BIN folder v is not exsits. also tried to remove BIN\ to BIN but it is also not working. I'd put contect of my run.exe file. Where I am not able to find any problem. Where else we mentioned these path?? or if you can see any problem in the run.exe contenet. please let me know.

kind Regards,
KS
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5700

1

Exactly where is ocijdbc10.dll located?
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Peter Johnson wrote:Exactly where is ocijdbc10.dll located?

C:\oraclexe\app\oracle\product\10.2.0\server\BIN
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5700

1

The set the library path like this:

-Djava.library.path=C:/oraclexe/app/oracle/product/10.2.0/server/BIN;c:/windows;c:/windows/system32
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Hello Peter,

Hope you're doing well. I saw your response and implement a soulution regarding that- pastes all required jars into a folder 'v'. Guess what -----It's working now I don't know it's right way to solve it or not... But it is working for now. Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5700

1

The "right" way is to correctly set the ld.library.path to match where your files are located. But I guess that moving all required files to the directory that ld.library.path is referencing is an acceptable solution.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1250

Thanks Peter

I agree. Here's the link: http://aspose.com/file-tools