Compile question
I got a few questions regarding compiling with Sun Studio.
1) If I compile a application for a specific CPU architecture, how specific can I be, specify exact CPU or just CPU family or perhaps both?
2) If I choose to compile for a specific CPU, could the application still be used on other CPU models but not get the same performance boost OR is the application totally locked for the specific CPU I compiled for?
3) If it isn't possible to run a specific compilation on all CPUs of the same family, is there a way to boost the performance generic for all CPU types in the same family?
Thanks,
Nergal
Because of the range of CPU architectures, there is no simple answer to your question. The detailed answers are in the C User's Guide chapter on compiler options:
http://docs.sun.com/source/819-3688/cc_ops.app.html
Refer especially to the -xarch, -xtarget, and -xchip options, as well as related options like -xcache.
You can download a pdf version of the C Users Guide here:
http://docs.sun.com/app/docs/coll/771.7
By default, the compilers generate code for a 32-bit generic architecture that will run on all non-obsolete systems in that family (sparc or x86). If you add -xarch, -xtarget, or -xchip options, you narrow the range of systems that will be able to run the code.
For example, if you select -xarch=v8plusa, the resulting code wil run on sparc v8plusa, b, and c archtiectures, but not on v8 or v8plus. Similarly, if you specify SSE or SSE2 instruction sets for x86, the code will run only on systems that support those instructions. In addition, the SSE family of extensions is supported only on Solaris 9 update 6 and later.
Except forf sparc T1 ("Niagara"), the sparc architectures are ordered linearly. Code compiled for an earlier ("lower") architecture will run on all later architectures, but not as fast as code compiled for the later achitecture. (T1 is an exception, being more like UltraSparc II, although it was introduced after UltraSparc III.)
The x86 family has no simple inter-relationships, unfortunately. Later x86 architectures sometime drop support for instructions that were present in earlier architectures. The generic instruction set will run on all x86 systems, but you have to pay closer attention when you tell the compiler to generate more specialized code.
Finally, 32-bit code runs only on a 32-bit architecture (for example, a 64-bit chip in 32-bit mode), and 64-bit code runs only on a 64-bit architecture and OS. For both sparc and x86/x64, the instructions sets and other architectural details are different between 32-bit and 64-bit mode. You can't mix 32-bit and 64-bit code in the same program.
Similar Messages
-
FORTE M2 - NT partition compilation question
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
c:\forte/install/lib/qqDB.lib : fatal error LNK1106: invalid file or disk
cannot seek to 0x38dff853
make[2]: *** [all] Error 1
Any suggestion ? (knowing I got 300 Mo left on drive)
1) Can that offset be translated in bytes ?
2) Does this rely on Oracle Client installation (DB) ?
Thanks,
j-paul gabrielli
sema DTSThanks for the info - installed.
Btw, another point:
can I tell Microsoft that I really like their
installation paths ?
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=C:\PROGRA~1\MI017E~1\Common
rem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=C:\PROGRA~1\MI017E~1\Common\msdev98
I fear that I cannot consider this as something portable :-/
j-paul
-----Message d'origine-----
De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
Date: mardi 30 mai 2000 15:39
À: 'Jean-Paul.Gabriellisema.fr'
Cc: kamranaminyahoo.com
Objet: RE: (forte-users) FORTE M2 - NT partition compilation question
Hi
You are using the wrong version (5.0) of MSVC++. Forte version M requires
the MSVC++ 6.0 compiler (Linker Version 6.00). See technote 12083.
Zenon Adamek
Purolator
-----Original Message-----
From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
Sent: Tuesday, May 30, 2000 9:34 AM
To: Forte User Group
Subject: (forte-users) FORTE M2 - NT partition compilation question
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
c:\forte/install/lib/qqDB.lib : fatal error LNK1106: invalidfile or disk
cannot seek to 0x38dff853
make[2]: *** [all] Error 1
Any suggestion ? (knowing I got 300 Mo left on drive)
1) Can that offset be translated in bytes ?
2) Does this rely on Oracle Client installation (DB) ?
Thanks,
j-paul gabrielli
sema DTS
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe,send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com--
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com -
Sigh. This is wearing me out. compiler question
I am not really a newbie to java technology but I seem to have a compiler question. My old compiler use to compile my codes. But a compiler I downloaded from your site dosent seem to work. Now there is a possibility that I downloaded a older version but I need someone to check this.
Problem? My compiler will not comply with the websites. It seems that when I go to test my applet on a website it says not found. Now bear in mind I am testing on my hard drive but they are both in the same folder (Applet .class, .html file) Heres something that may be the deciding factor. My compiler version is 1.1.8
See any problem that I can fix in this?public class Anotherapplet extends Applet {
public void paint(Graphics g) {
g.drawString("Hello world!", 50, 25);
More problems. It says that "Anotherapplet" should not be defined in "filename.java"
What am I doing wrong now? -
Hi,
There is two questions:
1)when I tried to compile the java client, I got this error message:
UnivBApplet.java:11: package org.omg does not exist
import org.omg.*;
^
1 error
NMAKE : fatal error U1077: 'javac' : return code '0x1'
Stop.
I know that I must set the classpath variable and I have set this:
C:\bea\tuxedo8.0\udataobj\jolt;C:\bea\tuxedo8.0\udataobj\java\jdk
Anything I ignored?
2)In tuxedo8.0/samples/corba/university/basic, do this command: nmake -f makefileb.nt
here is the error message:
..samplesdbsql.obj : error LNK2001: unresolved external symbol _sqlcxt
univb_server.exe : fatal error LNK1120: 1 unresolved externals
CMDTUX_CAT:4180: ERROR: can't execute cl /MD -Id:\Oracle\ora81\precomp\public
-I
C:\bea\tuxedo8.0\include -IC:\bea\tuxedo8.0\samples\corba\university\basic\..\ut
ils -DWIN32 -DORACLE8I -I"%TUXDIR%"\include -Feunivb_server.exe BS-870.cpp C:\be
a\tuxedo8.0\samples\corba\university\basic\..\utils\log.cpp C:\bea\tux
edo8.0\samples\corba\university\basic\..\utils\log_server.cpp C:\bea\tuxedo8.
0\samples\corba\university\basic\..\utils\unique_id.cpp C:\bea\tuxedo8.0\sam
ples\corba\university\basic\..\utils\samplesdb.cpp C:\bea\tuxedo8.0\samples\
corba\university\basic\..\utils\samplesdbsql.cpp C:\bea\tuxedo8.0\samples\corba
\university\basic\..\utils\oradbconn.cpp univb_c.cpp univb_s.
cpp univb_utils.cpp univb_i.cpp univbs.
cpp -GX -GR "%TUXDIR%"\lib\tpfwinit.obj "%TUXDIR%"\lib\libenv.lib "%TUXDIR%"\
lib\libomg.lib "%TUXDIR%"\lib\libnative.lib "%TUXDIR%"\lib\liborb.lib "%TUXDI
R%"\lib\liborbpoa.lib "%TUXDIR%"\lib\libtmib.lib "%TUXDIR%"\lib\libicbgp.lib
"%TUXDIR%"\lib\libtux.lib "%TUXDIR%"\lib\libbuft.lib %ORACLE_HOME%\RDBMS\XA\or
axa8.lib "%TUXDIR%"\lib\libfml.lib "%TUXDIR%"\lib\libfml32.lib "%TUXDIR%"\lib\li
bengine.lib wsock32.lib kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32
.lib winspool.lib -link -implib:BS-870.lib
NMAKE : fatal error U1077: 'buildobjserver' : return code '0x2'
Stop.
What happened?
Thanks,
GeorgeGeorge Lin wrote:
Hi,
There is two questions:
1)when I tried to compile the java client, I got this error message:
UnivBApplet.java:11: package org.omg does not exist
import org.omg.*;
^
1 error
NMAKE : fatal error U1077: 'javac' : return code '0x1'
Stop.
I know that I must set the classpath variable and I have set this:
C:\bea\tuxedo8.0\udataobj\jolt;C:\bea\tuxedo8.0\udataobj\java\jdk
Anything I ignored?Yes, the directories specified above do not contain classfiles, they contain jar files so
you need to specify the jar files explicitly in the classpath...
2)In tuxedo8.0/samples/corba/university/basic, do this command: nmake -f makefileb.nt
here is the error message:
..samplesdbsql.obj : error LNK2001: unresolved external symbol _sqlcxt
univb_server.exe : fatal error LNK1120: 1 unresolved externals
CMDTUX_CAT:4180: ERROR: can't execute cl /MD -Id:\Oracle\ora81\precomp\public
-I
C:\bea\tuxedo8.0\include -IC:\bea\tuxedo8.0\samples\corba\university\basic\..\ut
ils -DWIN32 -DORACLE8I -I"%TUXDIR%"\include -Feunivb_server.exe BS-870.cpp C:\be
a\tuxedo8.0\samples\corba\university\basic\..\utils\log.cpp C:\bea\tux
edo8.0\samples\corba\university\basic\..\utils\log_server.cpp C:\bea\tuxedo8.
0\samples\corba\university\basic\..\utils\unique_id.cpp C:\bea\tuxedo8.0\sam
ples\corba\university\basic\..\utils\samplesdb.cpp C:\bea\tuxedo8.0\samples\
corba\university\basic\..\utils\samplesdbsql.cpp C:\bea\tuxedo8.0\samples\corba
\university\basic\..\utils\oradbconn.cpp univb_c.cpp univb_s.
cpp univb_utils.cpp univb_i.cpp univbs.
cpp -GX -GR "%TUXDIR%"\lib\tpfwinit.obj "%TUXDIR%"\lib\libenv.lib "%TUXDIR%"\
lib\libomg.lib "%TUXDIR%"\lib\libnative.lib "%TUXDIR%"\lib\liborb.lib "%TUXDI
R%"\lib\liborbpoa.lib "%TUXDIR%"\lib\libtmib.lib "%TUXDIR%"\lib\libicbgp.lib
"%TUXDIR%"\lib\libtux.lib "%TUXDIR%"\lib\libbuft.lib %ORACLE_HOME%\RDBMS\XA\or
axa8.lib "%TUXDIR%"\lib\libfml.lib "%TUXDIR%"\lib\libfml32.lib "%TUXDIR%"\lib\li
bengine.lib wsock32.lib kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32
lib winspool.lib -link -implib:BS-870.lib
NMAKE : fatal error U1077: 'buildobjserver' : return code '0x2'
Stop.
What happened?This looks suspiciously like a common problem that has been plaguing Tuxedo users for
years. The problem is that Tuxedo supplies an undocumented database with the product
that has some include files (and libraries) that conflict with other RDBMS products. The
best thing to do is to rename the following files so that they do not get involved in
your compiles and cause you problems:
$TUXDIR/include/sqlca.h
$TUXDIR/include/sqlcode.h
$TUXDIR/include/sqlda.h
The following files may or may not cause problems on Windows platforms depending on the
RDBMS being used:
$TUXDIR/lib/libsql.lib (on non-windows platforms, the extension is different)
$TUXDIR/bin/libsql.dll (does not exist on non-windows platforms)
Hope this helps,
Robert -
Sorting/Compilation question
I've looked through previous posts on this topic and don't see one addressed to this specific question: Why does iTunes (I've got 7.0.2) assign music to the Compliations folder that really isn't a compilation?
I've been trying to build separate libraries of music -- one of aac files, for the iPod, and one of aiff files, for playing music through the computer -- and iTunes seems to make this a difficult task. Case in point: Pink Floyd's Ummagumma, a 2-disc release -- iTunes assigns disc 1 to iTunes Music > Pink Floyd > Ummagumma, but sticks disc 2 into iTunes Music > Compilations > Ummagumma.
It's a rip of a CD I own, and imported as aiff and then converted to aac. I used the latter to load on to the iPod, but kept the larger files because I can hear the difference between compressed and non-compressed music in my home stereo. But come to look at how these are filed, I've got nearly three dozen albums under "Compilations," two-thirds of which are by a single artist or group. I can understand albums that would feature multiple artists, but why does iTunes separate out the others?
Tom
PowerMac G5 dual 2.5GHz, 1.5GB; iBook G4 1.33GHz, 1GB Mac OS X (10.4.8) 200GB&500GB LaCie FW HD, 16x LaCie LightScribeZang! Exactly the solution for which I was searching. Thanks.
Tom
PowerMac G5 dual 2.5GHz, 1.5GB; iBook G4 1.33GHz, 1GB Mac OS X (10.4.8) 200GB&500GB LaCie FW HD, 16x LaCie LightScribe -
Hi . I have one class file for an IRC client , the compilation works fine...
javac -O <filename>.java
jar cvf <filename>.jar <filename>.class
jarsigner -keystore suresh.store <filename>.jar sureshcert
But now I want to compile it so it would work with Microsoft VM too on my web browser . What tools should I use or what are the correct commands on compilation (I'm using Java 2 SDK 1.4.2_05)?Hi,
This forum is exclusively for the Sun Java Studio Creator related discussions. Could you please post your question in the appropriate forum.
http://forum.java.sun.com/forum.jspa?forumID=31
Thanks,
RK. -
Compiling question responses in a survey question
I am creating diagnostic tests for a psychiatric firm for
presentation on their website. The tests use the Likert
Scale-question slide as their template and allow the user to select
from a scale usually with five options. I want to tabulate each of
the individual responses and report them to the user. For instance
the user is presented with this scale 1) Disagree, 2)Somewhat
Disagree, 3)Neutral, 4)Somewhat Agree, 5)Agree. The test is
completed and at the end they have selected Disagree-10 times,
Somewhat Disagree-5 times, Neutral- 11 times and Agree- 15 times. I
want to present each response group and the total number of
responses for each group and be able to apply the response total to
a score (i.e. 10 "Disagrees" selected means that the user is
clinically depressed). Is this possible using Javascripting?Hi and welcome to the forums!
Assuming you're wanting to do all this in Captivate, what
you're asking would be very difficult to accomplish using the
current version of the product.
You can easily present the questions using Captivate, but
compiling the answer into custom output is the really, really hard
part.
Some folks have been able to directly access the internal
Flash variables Captivate uses to store user results, but the
examples I've seen were in Flash and assume a moderate to high
level of Flash knowledge. Also, those variables are undocumented so
I can only guess at how folks are determining what they are.
If you can figure out which variable(s) Captivate uses to
store the user interaction data, you might be able to pull them out
into the browser using the Flash GetVariable method in Javascript.
Since you cannot access or modify Captivate objects using
Javascript, you'd pretty much have to build the results output
entirely in HTML or pass the information back in to a custom Flash
animation inside the Captivate movie. Either way, you're facing a
fairly difficult task.
Sorry it's not better news, but Captivate is very much an
"out of the box" product.
A suggestion would be to submit a Feature Request to Adobe to
offer some sort of documented API for accessing and controlling
internal Captivate variables and objects, which would more easily
allow you to create custom solutions like the one you're looking
for.
The Feature Request/Bug Submission form can be found here:
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=5 -
Hello,
I have simple question.
Error message is
"D:\git_repo\Adobe_InDesign_CS6_Plugin_SDK_413_Win\Adobe InDesign CS6 Plugin SDK\build\win\objr\BasicDialog\*.idrc not found.
merge_res.cmd - calling ConcatRes
1 file is copy.
ConcatRes skipped since ".\..\objr\BasicDialog"\BscDlg.fres is an empty file".
I use visual studio 2010 Ultimate SP1 version and windows 7 64bit.
How to sdk6 compile??Hi,
This normally means something is wrong with some paths. What I tend to do to help diagnose is temporarily modify merge_res.cmd so it displays the paths it is getting. It's been a while since I needed to do this, so I can only describe the broad strokes in what to do. If you open merge_res.cmd in a text editor, you edit it and add some additional info:
I had a quick look, and I noticed these lines:
rem echo %RESFILE%
rem echo %FRESFILE%
rem echo %TEMPRESFILE%
I'd uncomment them, and then try again. With a little luck, your Output window in Visual Studio will show what each of these are. If nothing appears (I am not 100% sure the echo-s from the .cmd will make it to the Output Window), make it something like
echo %RESFILE% > C:\tmp\merge_res_log.txt
echo %FRESFILE% >> C:\tmp\merge_res_log.txt
echo %TEMPRESFILE% >> C:\tmp\merge_res_log.txt
You can also throw in some additional things:
echo %1%
echo %2%
echo %3%
to help figure out what is happening.
Then you need to check your project file and properties in Visual Studio. I often forego Visual Studio, and instead open the .vxproj project file and the various .props files in a text editor, which makes it much easier to get an overview. Somewhere in there is an incorrect path setting.
Hope that helps. It's not possible to give you a simple 'do this and that fixes it' response: too many variables involved. If you would like to have a more in-depth discussion, a number of InDesign SDK developers will be at PePcon 2015; I'll be there!
http://www.pepcon.com/session/creative-developers-summit-2015/ -
Hi, Gurus,
I am new in Java. I have a question here that needs help.
When I compiled the following servlet with
javac SqlServlet.java
SqlServlet.java
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SqlServlet extends HttpServlet {
public void doGet(
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
I got this message:
javac SqlServlet.java
SqlServlet.java:9: package javax.servlet does not exist
import javax.servlet.*;
^
SqlServlet.java:10: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
SqlServlet.java:12: cannot resolve symbol
symbol : class HttpServlet
location: class SqlServlet
public class SqlServlet extends HttpServlet {
^
Looks like packages javax.servlet and javax.servlet.http were not found.
I used Windows 2000 with j2sdk1.4.0_02 and j2sdkee1.3.1 installed. What was wrong with me?
Thank you for your help in advance.
myao1myao1,
You indicated that you are using Windows 2000 with j2sdk1.4.0_02 and j2sdkee1.3.1. The Servlet Classes are located in the j2sdkee1.3.1 package. Follow the following steps:
1. Go to a command prompt (cmd.exe or command.exe) and type the following (looking for j2ee.jar):
echo %classpath%
If you see it in the classpath, then, if you are using some sort of IDE to compile your code, you will need to add the j2ee.jar to the class path in the IDE. Every IDE is different so I can't help you without knowing what you are using. If it is not found and you use the command prompt to compile your code, continue to step 2.
2. Find out the absolute path of your j2sdkee1.3.1 package. you really only need to include the j2ee.jar in your classpath, but I include both. Add the following two lines to your class path. I am using the absolute paths from my system (as an example):
a. You can either add them to the Classpath environment variable through the system environment variables.
b. create a batch file that you can run from a command prompt that looks similar to the following:
Contents of java141.bat
@ECHO OFF
ECHO JDK 1.4.1 and J2EE 1.3.1 are current versions
set HOLD_CP = %CLASSPATH%
set HOLD_PATH = %PATH%
set CLASSPATH=.
set CLASSPATH=%CLASSPATH%;e:\jdk14\jre\lib\rt.jar
set CLASSPATH=%CLASSPATH%;e:\jdk14\lib\dt.jar
set CLASSPATH=%CLASSPATH%;e:\jdk14\lib\tools.jar
set CLASSPATH=%CLASSPATH%;e:\jdk14\lib\htmlconverter.jar
rem **** J2EE STUFF ****
set CLASSPATH=%CLASSPATH%;e:\j2ee131\lib\j2ee.jar
set CLASSPATH=%CLASSPATH%;e:\j2ee131\lib\ejb10deployment.jar
set CLASSPATH=%CLASSPATH%;%HOLD_CP%
set PATH=e:\jdk14\bin
set PATH=%PATH%;c:\windows\command
set PATH=%PATH%;%HOLD_PATH%
c. add it to the compiler when you compile your classes:
javac -classpath "%classpath%;c:\j2ee131\lib\j2ee.jar;c:\j2ee131\lib\ejb10deployment.jar" *.javaI prefer the batch file technique because I sometimes need to compile code with different versions of the JDK and I can execute the ones I want. You can add other stuff to your path and classpath as well in these batch files. By the way, what are you using to compile your classes? I use textpad (http://www.textpad.com) and I am assuming you are doing it from a command prompt.
TJJ -
Native compiler question...
Hi there...
Could please someone tell me what is the difference between an ahead of time compiler and a just in time compiler? or it is the same thing?
Thanks in advance...
JohnAnybody that could answer my question please?
-
Very basic compiling question: multiple c files
Hi,
I've been playing with alchemy for a few days, and hit a road block. I'm sure there is an easy answer, but I can't find it...
I have a .c file "alchemy_project.c" that lets me call 3 functions from actionscript. I have the basic main() function that sets up the functions and calls
AS3_LibInit(result);
It is working well. However, I want to add another c file "support_functions.c" with a function I can call from "alchemy_project.c".
int testFunction(){
int i;
i = 2;
return i;
I made a header file "support_functions.h":
int testFunction();
I included this header in "alchemy_project.c" by placing it after my AS3.h include:
#include "AS3.h"
#include "support_functions.h"
I compile with:
alc-on
gcc alchemy_project.c support_functions.c -Wall -swc alchemy_project.swc
When I run my flash file, it gives:
Undefined sym: _main
If I add a main function to support_functions.c:
int main(){
return 0;
I get:
[object AlchemyExit]
Any tips?
Thanks for the help!This helped me a little bit:
http://forums.adobe.com/thread/465926
I now compile the 2 c files with:
gcc -c file1.c -o file1.o
gcc -c file2.c -o file2.o
then link them with
gcc file1.o file2.o file3.o -O3 -Wall -swc --combine lib.swc
I don't get any errors about main(), but actionscript gives me the error:
Undefined sym: _testFunction
when alchemy_project.c tries to call the testFunction() function in support_functions.c -
Whenever I try to compile one of the demo's that comes with the J3D API I get errors on the J3D classes that say:
error: Invalid class file format: <jar file>, wrong version: 46, exptected 45
My classpath is set correctly. Its finding the file, just doesn't like to version.
Thanks!What version of Java 3D and which Java SDK are you
using? Seems to me like you might need a newer one. -
Hi,
I have several PHP Scripts that I use with my Flex App. I have the PHP files in a subdirectory 'PHP/'. However, when I compile the Application the PHP files are overwritten and are blank. I tried placing the PHP directory in the 'src' source folder so when the app compiles the PHP files will compile much like assets. This method will work for some projects but not for others. How can I configure my application to leave the PHP directory alone without changing the path?You could create a folder outside the SRC and link this folder to a folder in the file system so your files will be localted where you want them to be.
-
Simple compilation question: linking with a jar
I am trying to compile a simple program and have it link with .jar files from JFreeChart. It compiles, but I can't run it, and for the life of me, I don't understand why:
-bash-3.00$ javac GenPie.java -classpath /opt/jfreechart-1.0.0/jfreechart-1.0.0.jar:/opt/jfreechart-1.0.0/lib/jcommon-1.0.0.jar:.
-bash-3.00$ java GenPie.class -classpath /opt/jfreechart-1.0.0/jfreechart-1.0.0.jar:/opt/jfreechart-1.0.0/lib/jcommon-1.0.0.jar:.
The java class is not found: org/jfree/data/general/PieDataset
The thing is, PieDataset is in the jar file (at least it's mentioned!)
-bash-3.00$ cat jfreechart-1.0.0.jar | strings | grep general/PieDataset
org/jfree/data/general/PieDataset.classuL;
org/jfree/data/general/PieDataset.classPK
Plus, the program compiles. I'm probably committing some sort of simple fundamental error that I as a java novice do not grasp - any ideas what that is?
Thanks!-bash-3.00$ java GenPie.class -classpath ...1) Wrong order of command-line parameters. -classpath first, THEN main class
2) (Maybe you typo'd this) The class is GenPie, not GenPie.class -- it's not a file name parameter, but rather a class name. -
Compile questions about example " DrawTest.java"
i install the j2sdk1.4.0 with windows98 operations system.
i want to recomplie the examples in c:\j2sdk1.4.0\demo\applets\DrawTest
javac DrawTest.java
12 errors occur as following:
DrawTest.java:185: cannot resolve symbol
symbol : variable orange
location: class Color
b.setForeground(Color.orange);
^
DrawTest.java:188: cannot resolve symbol
symbol : variable black
location: class Color
b.setForeground(Color.black);
^
DrawTest.java:194: cannot resolve symbol
symbol : variable lightGray
location: class Color
shapes.setBackground(Color.lightGray);
^
DrawTest.java:200: cannot resolve symbol
symbol : variable lightGray
location: class Color
g.setColor(Color.lightGray);
^
12 errors
how to solve this problem?
thanks a lotNormally problems regarding cannot resolve symbol I've found are because the file you're working on uses another class file in the code, and the compiler from the prompt doesn't know where it's looking for the dependant classes. When compiling try using "javac -classpath "c:\whereyourclassesare" "c:\whereyourjavafileis.java""
That should work, hopefully :)
Maybe you are looking for
-
Can I install a 2nd HDD in my Satellite P200-10C?
Hi I have a Satellite P200-10C which I want to upgrade with a 2nd HDD. I called a Toshiba representative who told me my model doesn't support an other HDD. But then again, why does it have a place in the back of the laptop for a 2nd one? Could some o
-
Hi, I hope I haven't posted this twice by mistake. I'm trying to insert a ticker across the frame, it consists of seven words only, and it keeps cutting off before the end. For instance, if two words are remaining, it just disappears off the screen i
-
Problem with Jolt Repository Editing
Greetings to all, I am suffering with a problem.A deficit of knowledge. Here it is: Our applications are running on Solaris 10 and Tuxedo 11gr1. If i need to add service in Jolt Repository how do I do it? All I have access to server is via a Putty Te
-
i am currently trying to make a mixtape that has more than one track on it of one logic project. i tried to bounce it(to mp3) with the intention of importing it back into the program as one track. however i can't import this mp3, and i have no other
-
When I downloaded the SmugMug app for LR, it didn't show up in my Download folder on my PC. Reviewing the Download History, it shows the download failed (it actually showed the file trying to be downloaded was Realistic Sky Gradients.zip which is no