This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 93947 - Unable to import JBuilder Project into Netbeans 5.5 using JBuilder Importer Module
Summary: Unable to import JBuilder Project into Netbeans 5.5 using JBuilder Importer M...
Status: REOPENED
Alias: None
Product: projects
Classification: Unclassified
Component: JBuilder project importer (show other bugs)
Version: 5.x
Hardware: Other Windows XP
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 04:21 UTC by chenji
Modified: 2017-04-18 19:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JPX file for JBuilder project that will not import. (21.11 KB, application/octet-stream)
2007-02-06 21:22 UTC, bthufnagel
Details
Contains log data from attempted JBuilder project import. (261.01 KB, application/octet-stream)
2007-02-06 21:30 UTC, bthufnagel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chenji 2007-02-02 04:21:03 UTC
When we go through the process to in selecting the existing JBuilder Project and
press the Finish button, the importer is immediately done and there's no
imported project. If I give it a folder name that doesn't exist it creates it,
but the folder is empty.
 
When a co-worker does the import on their machine, they have to indicate the
JBuilder Installation Folder each time, but the importer creates a destination
folder containing a build.xml file, and an nbproject folder which contains a
build-impl.xml file.
 
Given the above evidence, I think that without the JBuilder Installation data,
the importer does not do anything.
Comment 1 chenji 2007-02-02 04:28:18 UTC
We recommended the following stpes to import the JBuilder Project into Netbeans
5.5 IDE but it did not work for the customer.

So we are filling a bug on behalf of the customer

Steps :

1. Open NetBeans 5.5 IDE-> File -> Import Project -> Select JBuilder Poject
Importer.

2. A new window "Import JBuilder Java Project" opens,in the window you have to
enter or select options which only three options are enabled for selection.

3. In "Project to Import" option, specify or select the java project files which
contains *.jpr and *.jpx files for JBuilder2005, JBuilder2006 which is to be
imported into NetBeans IDE.

4. In "Destination Folder" option, specify or select the path of destination
location where you want the NetBeans to save the newly imported JBuilder project
on your local disk or drive.

5. In "JBuilder User Home" option, specify the location of the instance of the
JBuilder which contains information about the IDE default settings loaded while
starting Jbuilder IDE (e.g: C:/Documents and Settings/(Your User
Name)/.jbuilder2005)

Note : The fact that JBuilder Installed Folder is grayed out should just mean
that install.folder isn't needed for importing your *.jpx project. "Finish"
button is enabled then click on it, let the process finish, build it, run it. I
have tested it and it works for me (SimpleTextEditor.jpx, nb55, 1.2.12 on
Linux,Win 2000,XP & Solaris 10). 

6. Click Finish to complete to import existing JBuilder project into NetBeans.

Also we have checked the JBuilder Importer Module from the NetBeans 5.5 IDE on
different machines,it is working perfectly & importing the JBuilder Projects
into NetBeans properly.

For more details importing JBuilder Project in Netbeans you need to Download
JBuilder Project Importer Module.

You can download the JBuilder Project Importer Module to import projects that
you have developed with JBuilder 2005 into NetBeans IDE. (For NetBeans IDE 5.5,
this module can also import projects developed with JBuilder 2006). This module
eliminates or greatly reduces the amount of work you have to do get your
projects working in NetBeans IDE as they worked in JBuilder.

For more details of JBuilder project migration to Netbeans IDE refer the
following link

http://www.netbeans.org/kb/articles/import-jbuilder.html
Comment 2 chenji 2007-02-02 04:28:35 UTC
We recommended the following stpes to import the JBuilder Project into Netbeans
5.5 IDE but it did not work for the customer.

So we are filling a bug on behalf of the customer

Steps :

1. Open NetBeans 5.5 IDE-> File -> Import Project -> Select JBuilder Poject
Importer.

2. A new window "Import JBuilder Java Project" opens,in the window you have to
enter or select options which only three options are enabled for selection.

3. In "Project to Import" option, specify or select the java project files which
contains *.jpr and *.jpx files for JBuilder2005, JBuilder2006 which is to be
imported into NetBeans IDE.

4. In "Destination Folder" option, specify or select the path of destination
location where you want the NetBeans to save the newly imported JBuilder project
on your local disk or drive.

5. In "JBuilder User Home" option, specify the location of the instance of the
JBuilder which contains information about the IDE default settings loaded while
starting Jbuilder IDE (e.g: C:/Documents and Settings/(Your User
Name)/.jbuilder2005)

Note : The fact that JBuilder Installed Folder is grayed out should just mean
that install.folder isn't needed for importing your *.jpx project. "Finish"
button is enabled then click on it, let the process finish, build it, run it. I
have tested it and it works for me (SimpleTextEditor.jpx, nb55, 1.2.12 on
Linux,Win 2000,XP & Solaris 10). 

6. Click Finish to complete to import existing JBuilder project into NetBeans.

Also we have checked the JBuilder Importer Module from the NetBeans 5.5 IDE on
different machines,it is working perfectly & importing the JBuilder Projects
into NetBeans properly.

For more details importing JBuilder Project in Netbeans you need to Download
JBuilder Project Importer Module.

You can download the JBuilder Project Importer Module to import projects that
you have developed with JBuilder 2005 into NetBeans IDE. (For NetBeans IDE 5.5,
this module can also import projects developed with JBuilder 2006). This module
eliminates or greatly reduces the amount of work you have to do get your
projects working in NetBeans IDE as they worked in JBuilder.

For more details of JBuilder project migration to Netbeans IDE refer the
following link

http://www.netbeans.org/kb/articles/import-jbuilder.html
Comment 3 rmatous 2007-02-02 14:08:17 UTC
Works for me, also Rajesh mentioned that it works for him. So, to fix this issue
there is neccesary to get more information. The best would be to have the
project that user couldn't import.
Comment 4 bthufnagel 2007-02-05 12:38:59 UTC
I am the person who had the original problem and it doesn't seem project 
related - I've tried several.

I believe the real issue is that the text field specifying the JBuilder 
Installation Folder is empty and grayed out so I can't tell the importer where 
to find JBuilder.

A co-worker can import the projects, but he's able to specify where JBuilder is 
installed. As a side note, he has to specify the installation directory each 
time he runs the importer, which seems like another bug to me.
Comment 5 rmatous 2007-02-05 14:13:16 UTC
If I understand you right - you both: you and your co-worker use the same
version of JBuilder importer 1.2.12 in NetBeans55 and you both try to import the
same project (*.jpx, or *.jpr file). Your co-worker can specify "JBuilder
Installation Folder" and after clicking on "Finish" button everything works fine
and project is properly imported. If you do the same for the same project, you
can't specify "JBuilder Installation Folder" and after clicking on "Finish"
button the project isn't properly imported. 
Your co-worker is ever succesful, you never can import any project.
All the above is true for every JBuilder project (*.jpx or *.jpr) even for
SimpleTextEditor.jpx' from the JBuilder samples
projects(C:\Borland\JBuilder2006\samples\Swing\SimpleTextEditor).

Am I right ?
Comment 6 bthufnagel 2007-02-05 18:22:41 UTC
You are correct in everything but one. I tried importing the SimpleTextEditor 
and it worked - even without a filled in JBuilder Installation Folder.

I see a project in NetBeans, and it compiles even though it's having trouble 
showing me the classes so I can identify the project's Main Class . The 
browser's been displaying the message "Initilizing view, please wait..." for a 
couple of minutes. 

I finally gave up on waiting, typed it in, and the project runs so I guess 
that's not a big issue.

I don't know why a JBuilder sample project imports properly (even showed 
the "percentage done" status bar) but our internal JBuilder based projects 
won't. The internal projects are much bigger, but the percent done bar is up 
and gone so fast, it's just a flicker on the screen.

I wondered if the success had something to do with the SimpleTextEditor being 
in a subdirectory of the JBuilder installation, so I made a copy and put it in 
the Projects directory where our internal projects are kept. It still worked. 
AArgh!

Both times a "Warning" dialog box was displayed - here's the text:
   Some problems have occured:
      NetBeans will use the default platform for JBuilder 
project "SimpletextEditor" because JDK "" could not be resolved.


Any ideas?
Comment 7 rmatous 2007-02-06 10:42:09 UTC
Summary of problems:
1/ Some projects are not imported without any warning (100% reproducible on the
same computer)  but this problem isn't reproducible on every computer with the
same configuration - problem reported by this issue
2/"JBuilder installation directory" has to be specified after each 
restart of netbeans - can be fixed - but not high priority because projects
aren't imported everyday - should be handled as  separate issue
3/"Initilizing view, please wait..." - JBuilder importer module isn't
responsible for  - should be handled as  separate issue
4/"Warning" dialog box - just give you information that SimpletextEditor project
expects version of JDK that your running nb55 isn't aware of - no problem just
information for user

Next lets discuss just 1/ in this issue.
This problem might be  project related. You both import the same project but
this project can have dependencies on other projects, libraries, ..., which can
be reachable on your co-worker computer but not on your (absolute path, not
existing other projects and so on ). 

Following could help
a/ if you can please attach to this issue *.jpx file for project that you can't
import. 
b/ please attach ${nbuserdir}/var/log/messages.log  that keeps information about
problems

Comment 8 bthufnagel 2007-02-06 21:22:25 UTC
Created attachment 38144 [details]
JPX file for JBuilder project that will not import.
Comment 9 bthufnagel 2007-02-06 21:30:03 UTC
Created attachment 38145 [details]
Contains log data from attempted JBuilder project import.
Comment 10 bthufnagel 2007-02-06 21:32:47 UTC
OK, I attached the Aars.jpx and messages.log files.

The only thing I've done today was open NetBeans and try to import the Aars.jpx 
file. The importer created a destination folder, but there's nothing in it.
Comment 11 rmatous 2007-02-07 10:35:13 UTC
Thanks, seems like cyclic dependency  of libraries and no detection in importer
code which causes StackOverflowError. 

As a proof you could remove temporarily one line from Aars.jpx before import:
<property category="sys" name="Libraries" .... />

If I'm right then import should be succesfully finished.

In the next step you could put the line back and test which library causes this
problem by running it first just with JUnit, next with just CJC and so on until
the error occures.
Comment 12 rmatous 2007-02-14 15:27:39 UTC
Fix for cyclic deps. in libraries + test. I guess that cyclic deps. is source of
this problem.

Fixed in trunk. This fix should be also integrated into 5.5.

/cvs/ide/projectimport/jbuilder/src/org/netbeans/modules/projectimport/jbuilder/parsing/UserLibrarySupport.java,v
 new revision: 1.7; previous revision: 1.6

/cvs/ide/projectimport/jbuilder/test/unit/src/org/netbeans/modules/projectimport/jbuilder/parsing/UserLibrarySupportTest.java,v
 initial revision: 1.1

/cvs/ide/projectimport/jbuilder/test/unit/src/org/netbeans/modules/projectimport/jbuilder/parsing/RegularDepsTest.library,v
 initial revision: 1.1

/cvs/ide/projectimport/jbuilder/test/unit/src/org/netbeans/modules/projectimport/jbuilder/parsing/MainTest.library,v
 initial revision: 1.1

/cvs/ide/projectimport/jbuilder/test/unit/src/org/netbeans/modules/projectimport/jbuilder/parsing/RegularDepsTest2.library,v
 initial revision: 1.1

/cvs/ide/projectimport/jbuilder/test/unit/src/org/netbeans/modules/projectimport/jbuilder/parsing/CyclicDepsTest.library,v
 initial revision: 1.1

/cvs/ide/projectimport/jbuilder/manifest.mf,v  <--  manifest.mf
new revision: 1.8; previous revision: 1.7
Comment 13 rmatous 2007-06-20 13:58:19 UTC
Fixed in trunk M8
Comment 14 ashu2209 2016-01-20 06:53:58 UTC
Hello Everyone,

I am trying to import Jbuilder 2006(.jpx) project into NetBeans 7.3,7.4 or 8.1, but there is no option available to import.

After read so many post, I had installed Netbeans 5.5 also and when I went to

tools-->update Center

after having chosen all the centers for update, i click on the button 'next' , to connect and the message i received was : 
'unable to parse the content of update center server, check proxy setting or try later'. 


is there any solution to import???
Comment 15 broot02_86 2017-04-18 19:57:56 UTC
Is this no longer supported in current versions of Netbeans?