473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

cross-platform problem

I have a small GUI program (7 classes), and several of them have constants
defined in them, such as:

private static final Color DEFAULT_COLOR = Color.BLACK;

I've imported java.awt.Color, and all of the files compile and the programs
runs perfectly on a windows 2000 machine. However, when I move the files to
a Unix machine, the files won't compile..."No variable BLACK defined in
java.awt.Color"

Could anybody tell me why this is?
Jul 17 '05 #1
2 1651
Top-posting myself here.

No variable EXIT_ON_CLOSE defined in javax.swing.JFrame

Does anyone know why I would get this message on a SunOS 5.8 machine but not
on a Windows 2000 Pro machine?

If it helps, I had the same problems with the Colors (see below)...all of my
files compiled and ran on the Windows machine, but the Sun's compiler
complained "No variable Color.BLACK defined in java.awt.Color", and I solved
it by changing everything from, for example, Color.BLACK to Color.black
because there are lowercase alternatives defined in java.awt.Color.
Unfortunately javax.swing.JFrame has no lowercase alternative for
EXIT_ON_CLOSE.

"Robot Tree" <ye******@netscape.net> wrote in message
news:kts2c.30502$UU.8806@lakeread01...
I have a small GUI program (7 classes), and several of them have constants
defined in them, such as:

private static final Color DEFAULT_COLOR = Color.BLACK;

I've imported java.awt.Color, and all of the files compile and the programs runs perfectly on a windows 2000 machine. However, when I move the files to a Unix machine, the files won't compile..."No variable BLACK defined in
java.awt.Color"

Could anybody tell me why this is?

Jul 17 '05 #2
Top posting myself again...apparently, EXIT_ON_CLOSE is only defined in JDK
1.3 and later, and I guess my schools computers are not up to date or
something.

"Robot Tree" <ye******@netscape.net> wrote in message
news:QWs2c.30507$UU.12512@lakeread01...
Top-posting myself here.

No variable EXIT_ON_CLOSE defined in javax.swing.JFrame

Does anyone know why I would get this message on a SunOS 5.8 machine but not on a Windows 2000 Pro machine?

If it helps, I had the same problems with the Colors (see below)...all of my files compiled and ran on the Windows machine, but the Sun's compiler
complained "No variable Color.BLACK defined in java.awt.Color", and I solved it by changing everything from, for example, Color.BLACK to Color.black
because there are lowercase alternatives defined in java.awt.Color.
Unfortunately javax.swing.JFrame has no lowercase alternative for
EXIT_ON_CLOSE.

"Robot Tree" <ye******@netscape.net> wrote in message
news:kts2c.30502$UU.8806@lakeread01...
I have a small GUI program (7 classes), and several of them have constants defined in them, such as:

private static final Color DEFAULT_COLOR = Color.BLACK;

I've imported java.awt.Color, and all of the files compile and the programs
runs perfectly on a windows 2000 machine. However, when I move the

files to
a Unix machine, the files won't compile..."No variable BLACK defined in
java.awt.Color"

Could anybody tell me why this is?


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
4
by: David Peach | last post by:
Hello, hope somebody here can help me... I have a query that lists defects recorded in a user defined date range. That query is then used as the source for a Cross Tab query that cross-tabs count...
23
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the...
0
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics,...
3
by: jlamanna | last post by:
I was wondering if there was a utility that could tell you when your C# application is making cross-apartment COM calls. I have a fairly large application that makes extensive use of a 3rd party...
1
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I...
3
by: aspmonger | last post by:
Hello, I really believe that IE 6 has a new (intentional?) bug that severely limits the capability of dhtml and cross domain scripting. Yesterday, I read an interesting article about the subject and...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.