Solved

Using the JDK compiler...

Posted on 1998-06-28
2
246 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

738 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