Solved

Using the JDK compiler...

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now