BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deploying JBuilder 8 personal GUI on Linux

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment
View previous topic :: View next topic  
Author Message
Delali Dzirasa
Guest





PostPosted: Wed Nov 12, 2003 4:04 pm    Post subject: Deploying JBuilder 8 personal GUI on Linux Reply with quote



I am just about finished with my first java application, and am in the
process of testing the deployment on a windows box as well as a UNIX box. I
have research / have created an executable jar file and attempted to execute
it in a UNIX environment and got the error below..I created the application
in JBuilder 8 personal..do I need to add a specific library to run this GUI?



Exception in thread "main" java.lang.InternalError: Can't connect to X11
window

server using ':0.0' as the value of the DISPLAY variable.

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:1

34)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi

ronment.java:62)

at java.awt.Window.init(Window.java:231)

at java.awt.Window.<init>(Window.java:275)

at java.awt.Frame.<init>(Frame.java:401)

at java.awt.Frame.<init>(Frame.java:366)

at javax.swing.JFrame.<init>(JFrame.java:154)

at apl.Frame1.<init>(Frame1.java:165)

at apl.EngineeringDump.main(EngineeringDump.java:86)



apl.EngineeringDump

83 //Main method

84 public static void main(String[] args) {

85 // Data data1 = new Data();

86 Frame1 frame = new Frame1();

87

88 try {

89

90 //; FillFrame(frame);

91

92 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

93 }

94 catch(Exception e) {

95 e.printStackTrace();

96 }

97

98

99 EngineeringDump egd = new EngineeringDump();

100

101 // frame.dm = new DataManager();

102 // frame.FlowDataToGUI(data1);

103 // frame.FlowDataToGUI(data1);

104 }

apl.Frame file:

165 public Frame1() {

166

167 enableEvents(AWTEvent.WINDOW_EVENT_MASK);

168 try {

169 jbInit();

170 }

171 catch(Exception e) {

172 e.printStackTrace();

173 }

174 }



Thanks, any assistance is greatly appreciated!

Delali


Back to top
pNichols
Guest





PostPosted: Wed Nov 12, 2003 4:35 pm    Post subject: Re: Deploying JBuilder 8 personal GUI on Linux Reply with quote



Delali Dzirasa wrote:

Quote:
I am just about finished with my first java application, and am in the
process of testing the deployment on a windows box as well as a UNIX box.
I have research / have created an executable jar file and attempted to
execute it in a UNIX environment and got the error below..I created the
application in JBuilder 8 personal..do I need to add a specific library to
run this GUI?



Exception in thread "main" java.lang.InternalError: Can't connect to X11
window

Try running just the jar file first. I have had problems with the native bin

builder across differing versions of UNix as well. If the jar runs fine,
then the Native exe/bin builder is the culrpit. If the jar has problems
running, something else is amiss.

run the jar with the verbose on and get the full stack dump. That may help
you determine where the problem is.

BTW, what JDK are you using and deploying to?


Back to top
Delali Dzirasa
Guest





PostPosted: Wed Nov 12, 2003 8:05 pm    Post subject: Re: Deploying JBuilder 8 personal GUI on Linux Reply with quote



Quote:
Try running just the jar file first. I have had problems with the native
bin
builder across differing versions of UNIX as well. If the jar runs fine,
then the Native exe/bin builder is the culrpit. If the jar has problems
running, something else is amiss.

BTW, what JDK are you using and deploying to?

running 1.4.1 and deploying to 1.4.2......its seems as though I had a issue
with my X server.....running the application from a unix environment worked
fine, but testing it through a pc is when I had problems.....fixing this
corrected my issue....thanks!

Delali



Back to top
Thomas Kloeber
Guest





PostPosted: Fri Nov 14, 2003 4:42 pm    Post subject: Re: Deploying JBuilder 8 personal GUI on Linux Reply with quote

Delali,

the error you are seeing points more to an environment problem.
for Unix you need to specify the DISPLAY on which your windows are to be
shown.

depending on the shell you are using to start your jar file try the
following:

+ on bash/sh/ksh: export DISPLAY=<your host name>:0.0
+ on csh: setenv DISPLAY <your host name>:0.0

you also might need to allow access to your X11 server:

xhost +<your host name>

thomas


Back to top
Tad Frysinger [TeamB]
Guest





PostPosted: Tue Nov 18, 2003 1:37 pm    Post subject: Re: Deploying JBuilder 8 personal GUI on Linux Reply with quote

Delali Dzirasa wrote:

Quote:
I am just about finished with my first java application, and am in the
process of testing the deployment on a windows box as well as a UNIX box. I
have research / have created an executable jar file and attempted to execute
it in a UNIX environment and got the error below..I created the application
in JBuilder 8 personal..do I need to add a specific library to run this GUI?



Exception in thread "main" java.lang.InternalError: Can't connect to X11
window

Make sure that you aren't trying to execute this through a shell that

doesn't have X associated with it (i.e. telnet or SSH).

Also, just try running it via the java -jar and get that working first.

--
Tad Frysinger [TeamB]


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.