Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
General[Message Deleted] Pin
lnmca12-May-09 2:03
lnmca12-May-09 2:03 
GeneralRe: How to make the property having listview type Pin
Christian Graus12-May-09 2:18
protectorChristian Graus12-May-09 2:18 
GeneralRe: How to make the property having listview type Pin
fly90412-May-09 2:46
fly90412-May-09 2:46 
QuestionBest way to get an image of a Form Pin
Steve_12-May-09 0:56
Steve_12-May-09 0:56 
AnswerRe: Best way to get an image of a Form Pin
Christian Graus12-May-09 1:17
protectorChristian Graus12-May-09 1:17 
GeneralRe: Best way to get an image of a Form Pin
Steve_12-May-09 1:46
Steve_12-May-09 1:46 
GeneralRe: Best way to get an image of a Form Pin
Christian Graus12-May-09 1:47
protectorChristian Graus12-May-09 1:47 
QuestionExecuting Java Object in C# Pin
Mninawa12-May-09 0:54
Mninawa12-May-09 0:54 
I have this task, i need to call a Java Application using a web-service call.I need to know if someone has a clue on how to do that,so far this is my attempt.
string cmd ="C:\Program Files\Java\jre1.6.0\bin\Java.exe"; 
//We use this command to invoke or start the java application which take argument infront.

string cmdParams="java -Xms32m -Xmx1g -Djava.library.path=d:\cep\col\sql -classpath d:\cep\col\commons-net-1.4.1.jar;d:\cep\col\commons-codec-1.3.jar;d:\cep\col\sql\sqljdbc.jar;d:\cep\col\DialogInput.jar za.co.lightWave.control.DialogInputControl";


using (Process process = Process.Start(new ProcessStartInfo(cmd, cmdParams)))
            {
    
                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.RedirectStandardError= true;

                process.StartInfo.UseShellExecute = false;
                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    
                process.Start();

                process.WaitForExit(timeout);
                return process.ExitCode;
            }


I need to know what is an effective way of executing that command,what i have currently is
java.lang.NoClassDefFoundError: java Exception in thread "main"


Thank you in advance
Mninawa
AnswerRe: Executing Java Object in C# Pin
Steve_12-May-09 0:59
Steve_12-May-09 0:59 
GeneralRe: Executing Java Object in C# Pin
Steve_12-May-09 1:03
Steve_12-May-09 1:03 
GeneralRe: Executing Java Object in C# Pin
Mninawa12-May-09 1:59
Mninawa12-May-09 1:59 
AnswerRe: Executing Java Object in C# Pin
Luc Pattyn12-May-09 2:05
sitebuilderLuc Pattyn12-May-09 2:05 
Questionmemory usage Pin
michaelgr112-May-09 0:11
michaelgr112-May-09 0:11 
AnswerRe: memory usage Pin
Rob Philpott12-May-09 0:13
Rob Philpott12-May-09 0:13 
AnswerRe: memory usage Pin
Simon P Stevens12-May-09 0:27
Simon P Stevens12-May-09 0:27 
GeneralRe: memory usage Pin
michaelgr112-May-09 0:31
michaelgr112-May-09 0:31 
GeneralRe: memory usage Pin
Simon P Stevens12-May-09 0:52
Simon P Stevens12-May-09 0:52 
QuestionReplace in Regex Pin
Kjetil Svendsen11-May-09 23:35
Kjetil Svendsen11-May-09 23:35 
QuestionAuto update publishing Pin
aastudent11-May-09 23:18
aastudent11-May-09 23:18 
AnswerRe: Auto update publishing Pin
Simon P Stevens11-May-09 23:43
Simon P Stevens11-May-09 23:43 
AnswerRe: Auto update publishing Pin
OriginalGriff11-May-09 23:47
mveOriginalGriff11-May-09 23:47 
AnswerRe: Auto update publishing Pin
Giorgi Dalakishvili12-May-09 0:32
mentorGiorgi Dalakishvili12-May-09 0:32 
QuestionRebbon Control - C Sharp Pin
misCafe11-May-09 22:35
misCafe11-May-09 22:35 
AnswerRe: Rebbon Control - C Sharp Pin
DaveyM6911-May-09 22:37
professionalDaveyM6911-May-09 22:37 
GeneralRe: Rebbon Control - C Sharp Pin
misCafe11-May-09 22:51
misCafe11-May-09 22:51 

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.