Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using the JDK compiler...

Posted on 1998-06-28
2
Medium Priority
?
264 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

610 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