You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nbarakat

Beginner

  • "nbarakat" started this thread

Posts: 11

Date of registration: May 24th 2010

  • Send private message

1

Friday, June 4th 2010, 4:44pm

Problem with the Framework

Hello All,



As a new comer to jabaco, I am trying to setup the jabaco framework. I have followed instructions on the articles related to the framework. I managed to create a project in Netbeans for the VBA part of the framework, and that part seems to compile fine with the exception of a warning:





Quoted

Compiling 45 source files to C:\Documents and Settings\nbarakat\java\jabaco\build\classes
D:\SVNJabacoFW\Framework\src\VBA\JabacoEventQueue.java:36: warning: sun.awt.SunToolkit is Sun proprietary API and may be removed in a future release
SunToolkit.flushPendingEvents();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\SVNJabacoFW\Framework\src\VBA\VBVariant.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
compile-single:
BUILD SUCCESSFUL (total time: 2 seconds)

Unfortuanatly, the VB part of the framework seem to have a problem compiling. Using ant to build the project (build.bat), I get the following build.log (I am just including the error):



Quoted

2010-06-04 Compile error. Class: 'Global' line: 681 => Function or variable not defined!

So I loaded the framework in jabaco, and the compiler produces an error on the following statement:



Quoted


Public Function VBMousePointerToJCursor(v As MousePointerConstants) As #Cursor
...

Dim cur = New Cursors() <<=== causes the error

remarking this part produces errors in other parts ...



Even though build.bat produces a jabaco.jar in the bin directory, I believe such a jar is missing the VB framework. It is also 236KB which is in line with the Jabaco201003160500.jar released on March 16th but much smaller then Jabaco200910070500.jar of October 7, which is in the 515KB.



I don't know if something got broken along the way or the SVN got messed up or Iam doing something wrong (which is most probably the case since Iam new to this and to Java ...)



Any help is appreciated.

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Friday, June 4th 2010, 9:06pm

Quoted

Even though build.bat produces a jabaco.jar in the bin directory, I believe such a jar is missing the VB framework. It is also 236KB which is in line with the Jabaco201003160500.jar released on March 16th but much smaller then Jabaco200910070500.jar of October 7, which is in the 515KB.


You have only compiled the Java-part in the VBA-directory. All of the VB-directory isn't in there.

1. Replacing the Jabaco.jar in your Jabaco-directory with your created file Jabaco201003160500.jar. (You have to rename it to Jabaco.jar).

2. Loading the file "FrameworkTest.jba" in the directory VB of the Jabaco-Framework in your Jabaco-IDE

3. Run it or compile it to a Jar-file.

4. Rename the compiled Jar-file to Jabaco.jar and copy it to your home-directory. It is your self created Jabaco.jar.

5. If you want you can delete some classes of Jabaco.jar like uControlTest.class, uDatabase.class, uFileSystem.class, etc. which are not needed for the framework itself. They are only for a demo-program, which comes with the Framework.

Greatings
theuserbl

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

3

Friday, June 4th 2010, 9:23pm

Quoted

It is also 236KB which is in line with the Jabaco201003160500.jar


Ok, I have looked at it. It missed additional some graphics.

Before you doing that what I have mentioned before, you have at fiorst create something like Jabaco201003160500.jar.

Compile with the Java compiler Javac all in the directory VBA.
For this going in the directory "Framework\src" of the Framework. And then input

Source code

1
javac VBA\*.java

That compiles all files there.

Now you can delete all *.java files in VBA, because you need for the jar-file only the binaries.

Coping the complete VBA directory with in a new directory. Additional copy all in "framework\lib" in the new directory.

After that the directories and files in your new directory have to look like

Source code

1
2
3
4
5
6
\META-INF
\com
\eaio
NativeCall.dll
\net
\VBA


Now input it completly in a Zip archive like with WinRAR, 7zip, WinZIP and reneme the file to Jabaco.jar.

Then doing what I have mentioned before.

Sbleck

Beginner

  • "Sbleck" is male

Posts: 13

Date of registration: May 29th 2010

Location: Santos, Brazil

Occupation: Consultant

Hobbies: Builing some apps for accessing databases and some automation processes

  • Send private message

4

Friday, June 4th 2010, 9:54pm

RE: Problem with the Framework


Hello All,

As a new comer to jabaco, I am trying to setup the jabaco framework. I have followed instructions on the articles related to the framework. I managed to create a project in Netbeans for the VBA part of the framework, and that part seems to compile fine with the exception of a warning:

...

Even though build.bat produces a jabaco.jar in the bin directory, I believe such a jar is missing the VB framework. It is also 236KB which is in line with the Jabaco201003160500.jar released on March 16th but much smaller then Jabaco200910070500.jar of October 7, which is in the 515KB.


...

Any help is appreciated.


Hello,



Yes, I noted that the latest framework was smaller than the previous and used that previous to upgrade my framework (few days after installing Jabaco) to compile the Jabaco apps, too.



I encountered a reference (in the forum) that when you downloaded the IDE, existed another tab to download the framework and noted too that the framework that came with the IDE is the http://www.jabaco.org/download/snapshot/…00909010500.jar release...



HTH,

Sven

nbarakat

Beginner

  • "nbarakat" started this thread

Posts: 11

Date of registration: May 24th 2010

  • Send private message

5

Saturday, June 5th 2010, 11:55am

Thanks theusrbl for your feedback.



The problem that I came across is in the following step. I can load the frameworkTest.jba in the jabaco-IDE after downloading it from the SVN but when trying to compile it within the jabaco-IDE errors are generated. So I think their is a problem with the sourcecode of the framework on the last update to the SVN.



Quoted

2. Loading the file "FrameworkTest.jba" in the directory VB of the Jabaco-Framework in your Jabaco-IDE

3. Run it or compile it to a Jar-file.

Iam not sure who can upload source files on the SVN but could it be that the files last uploaded had a problem?



Thanks again for your input.

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

6

Saturday, June 5th 2010, 2:51pm

Quoted

Iam not sure who can upload source files on the SVN but could it be that the files last uploaded had a problem?


I have had tested it and it runs ok.

Have you really created a new Jar with new compiled files of the VBA-directory before?

It is very important, that you have at first in your old Jabaco.jar file the new compiled files in the VBA-directory.
The framework makes use of it.

And can you please publish the error-messages you have, when you want to run FrameworkTest.jba .


Again:
1. Compiling with Java all in VBA and creating with all in the lib directory a Jar file, which replaces Jabaco.jar. (that Jabaco.jar is only a temporary file for the next step)

2. When you have created your new Jabaco.jar, loading "FrameworkTest.jba" and run it. Now it would be running a demo program.
To make use of all the framework files, you have then to compike it AGAIN to a jar file and replacing the Jabaco.jar with it.

Greatings
theuserbl

nbarakat

Beginner

  • "nbarakat" started this thread

Posts: 11

Date of registration: May 24th 2010

  • Send private message

7

Saturday, June 5th 2010, 3:10pm

Thanks again for your help. It worked! :)



I didn't copy the full library from Framework\lib ...



Thanks again.

Rate this thread
WoltLab Burning Board