Click here to Skip to main content
15,884,388 members
Home / Discussions / Java
   

Java

 
GeneralRe: How to convert 2d array into 1d array in java Pin
Member 1278579115-Oct-16 5:06
Member 1278579115-Oct-16 5:06 
QuestionRelating Country to its State & Province Pin
Member 1276860029-Sep-16 23:12
Member 1276860029-Sep-16 23:12 
SuggestionRe: Relating Country to its State & Province Pin
Richard MacCutchan29-Sep-16 23:45
mveRichard MacCutchan29-Sep-16 23:45 
GeneralRe: Relating Country to its State & Province Pin
Member 1276860030-Sep-16 0:17
Member 1276860030-Sep-16 0:17 
GeneralRe: Relating Country to its State & Province Pin
Richard MacCutchan30-Sep-16 0:53
mveRichard MacCutchan30-Sep-16 0:53 
Questioncompile error: string is private with powershell Pin
shoysmTP15-Sep-16 0:53
shoysmTP15-Sep-16 0:53 
AnswerRe: compile error: string is private with powershell Pin
Richard MacCutchan15-Sep-16 1:40
mveRichard MacCutchan15-Sep-16 1:40 
QuestionLoad C++ Library Only Once Pin
Django_Untaken10-Sep-16 9:30
Django_Untaken10-Sep-16 9:30 
Hello there. I have managed to load and use c++ dll using JNI, in my java servlet (System.load). It works perfectly on first request I submit. But on subsequent requests, I get this weir d exception.
java.lang.UnsatisfiedLinkError: Native Library WEB-INF/lib/XXXXXX.dll already loaded in another classloader<br />
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1525)


Here is my loading code
public void init(ServletConfig config) throws ServletException 
{
    super.init(config);
    ServletContext context = getServletContext();
    String sMathDllpath = context.getInitParameter("MathDLLPath");	
    System.load(sMathDllpath);

}

I studied this tomcat wiki link and implemented their solution, among others, but could not succeed.
How do I implement it successfully? Thnks for anything you share.
AnswerRe: Load C++ Library Only Once Pin
Richard MacCutchan10-Sep-16 20:42
mveRichard MacCutchan10-Sep-16 20:42 
GeneralRe: Load C++ Library Only Once Pin
Django_Untaken11-Sep-16 4:58
Django_Untaken11-Sep-16 4:58 
GeneralRe: Load C++ Library Only Once Pin
Richard MacCutchan11-Sep-16 6:17
mveRichard MacCutchan11-Sep-16 6:17 
QuestionI'm having some issues with a source code Pin
DarkoJava2-Sep-16 15:55
DarkoJava2-Sep-16 15:55 
QuestionJava sector best? Pin
Member 127154721-Sep-16 6:42
Member 127154721-Sep-16 6:42 
QuestionJava sector best? Pin
Member 127154721-Sep-16 6:42
Member 127154721-Sep-16 6:42 
AnswerRe: Java sector best? Pin
NotPolitcallyCorrect1-Sep-16 7:10
NotPolitcallyCorrect1-Sep-16 7:10 
AnswerRe: Java sector best? Pin
ZurdoDev12-Oct-16 1:08
professionalZurdoDev12-Oct-16 1:08 
QuestionExposing API VS Stored procedure Pin
Java Lead31-Aug-16 4:28
Java Lead31-Aug-16 4:28 
AnswerRe: Exposing API VS Stored procedure Pin
Richard MacCutchan31-Aug-16 4:43
mveRichard MacCutchan31-Aug-16 4:43 
QuestionCan not Access RequestAttribute in JSTL Pin
AmbiguousName26-Aug-16 0:46
AmbiguousName26-Aug-16 0:46 
AnswerRe: Can not Access RequestAttribute in JSTL Pin
rah_sin30-Aug-16 20:07
professionalrah_sin30-Aug-16 20:07 
Question[SOLVED] 'TYPE' Cannot Be Resolved To a Type in JSP Pin
Django_Untaken24-Aug-16 2:34
Django_Untaken24-Aug-16 2:34 
QuestionDrools : Exception in thread "main" java.lang.RuntimeException: Query 'results' does not exist Pin
coolSol23-Aug-16 18:37
coolSol23-Aug-16 18:37 
AnswerRe: Drools : Exception in thread "main" java.lang.RuntimeException: Query 'results' does not exist Pin
Richard MacCutchan23-Aug-16 21:02
mveRichard MacCutchan23-Aug-16 21:02 
Questionconsole output to a text file Pin
Member 1142765722-Aug-16 3:55
Member 1142765722-Aug-16 3:55 
AnswerRe: console output to a text file Pin
Richard MacCutchan22-Aug-16 4:28
mveRichard MacCutchan22-Aug-16 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.