Solved

Using the JDK compiler...

Posted on 1998-06-28
2
239 Views
Last Modified: 2010-05-03
Greetings VBLings,
Does anyone know how to make use the JDK from Visual Basic 5.

With the richtextbox control and 2 command buttons,
one Command Button to compile the content of the
richtextbox control
and the other to view the current java application.

Please post the all the needed code in order for this
sample to work.

Thank you.
idcjavateam@hotmail.com
0
Comment
Question by:idcjavateam
2 Comments
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1464473
rtf1.SaveFile "c:\1.class", rtftxt
x=shell("javac c:\1.class",2)
x=shell("java c:\1.java")
0
 
LVL 6

Accepted Solution

by:
clifABB earned 50 total points
ID: 1464474
Private Sub Command1_Click()
  Dim nRes As Integer

  RichTextBox1.SaveFile "c:\MyJava.java", rtfText
  nRes = Shell("javac c:\MyJava.java", 2)
End Sub

Private Sub Command2_Click()
  Dim nRes As Integer

  nRes = Shell("java c:\MyJava.class")
End Sub

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question