?
Solved

Using the JDK compiler...

Posted on 1998-06-28
2
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

770 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