You are not logged in.

jbExplorer

Trainee

  • "jbExplorer" started this thread

Posts: 111

Date of registration: Mar 18th 2013

  • Send private message

1

Monday, March 18th 2013, 1:47pm

Not clear on how to execute a compile Jabaco program

Hi,

I'm really sorry if this is all should be obvious, but I'm not clear on how to run a Jabaco application, except for directly from the IDE.

The IDE generated the Jabaco source files, jba, etc, in my chosen project folder, and then compiled the app into class files, into a different folder in AppData. The class files for this simple first project are



Form1$Label.class
Form1$TextBox.class
Form1.class
Module1.class
Resources.class


Which of these has the main method? The command to run it, does it require a separate Jabaco .jar in the classpath, or is it something like

java Form1


Also, what are the Framework files at http://www.jabaco.org/index.php?page=doc

, used for? I mean, if you try to execute Jabaco201101150500.jar, what parameters should be used? If I try to execute this with

java -jar Jabaco201101150500.jar


, all I get is a Main-class manifest attribute error.


Jabaco is intriguing, but aside from the Designer, I'm not clear how it works and what is needed to execute the .class files. Also, is there a .jar generator for all the class files? I don't see that in the ide.

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

2

Monday, March 18th 2013, 2:57pm

Hey there,

in the Jabaco Ide to compile your app to a .jar file you have to open the File menu and hit MakeProject.
A dialog will open where you have to choose the destination path and whether you want to compile to an .exe or a .jar

Remember this location and you will find your compiled programm there!

The .class files you mentioned are probably temporary files Jabaco creates while compiling, I am not sure.

About the Framework files:
You will find many threads about that in this forum!

You can find the latest compiled framework version here:
https://code.google.com/p/jbaindi/downloads/list

Unfortunatly Manuel does not maintain this site regarding the framework!

Rename the downloaded .jar file to Jabaco.jar In your Jabaco directory replace the existing Jabaco.jar with the new one.
You might want to keep a backup of the old Jabaco.jar somewhere!!


Dani

jbExplorer

Trainee

  • "jbExplorer" started this thread

Posts: 111

Date of registration: Mar 18th 2013

  • Send private message

3

Monday, March 18th 2013, 5:05pm

Yep, was able to generate the .jar and execute it, thanks.

I've seen some of the threads on the Framework files, and also have the most recent one. I'm just not clear on how they are used, e.g. on the command line.

It looks as if we really don't need to use them, at all, in form development.

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

4

Monday, March 18th 2013, 6:13pm

Hey there,

http://www.jabaco.org/wiki/Jabaco_Framework

The Framework is a softwarewrapper that provides a Visual Basic like syntax for Java components and functions.
It is a layer between Java and Jabaco!
The Jabaco Usercontrols and Functions are provided by the Framework.

Have a look at the Framework source, you will find many solutions for standard programming tasks and it will open your eyes about Jabaco...

https://code.google.com/p/jabacoframework/source/browse/#


Dani

PS: The Framework is open source! That way Jabaco is very easy to extend and adjust to your needs.
You can compile it yourself and Jabaco will use it when you provide it as Jabaco.jar

This post has been edited 1 times, last edit by "Dani" (Mar 18th 2013, 6:20pm)


Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

jbExplorer

Trainee

  • "jbExplorer" started this thread

Posts: 111

Date of registration: Mar 18th 2013

  • Send private message

6

Monday, March 18th 2013, 6:30pm

Ah, ok, got it. So this framework is where the mapping takes place between the legacy VB syntax, and the Java Swing syntax.

Great, thanks Dani.

Dani

Intermediate

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

7

Tuesday, March 19th 2013, 9:13am

...for the common Java / VB User Controls and Functions, Yes!
The Jabaco compiler does the real VB => Java syntax mapping.

Rate this thread
WoltLab Burning Board