About compiling (or not) in JBuilder8
Hi there.
Does anybody out there have any experience with JBuilder8?
I have a problem compiling my stuff. Let's say that I have 3 java-files (A.java, B.java & C.java). Since B needs C and A needs B, i need to compile C first...
import B;
class A {
import C;
class B {
class C {
I click the "make"-button for C, and that works fine. When I click "make" for class B, I get this message:
"B.java": Error #: 200 : '.' expected at line 1, column 9
And this goes for compiling A.java too.
FACT: IT WORKS IN JBUILDER7!!!
FACT: I KNOW THAT C.class IS COMPILED IN THE RIGHT DIRECTORY.
I guess some of you would like to say: "Well, use JBuilder7 then."
That isn't such a bad idea, but I'd like this to work in JB8.
Any help is appreciated.
BR,
Herman
When I remove the import statement I get this message:
"ResUtleieRegister.java": Error #: 300 : class DbHandler not found in class ResUtleieRegister at line 6, column 11
"ResUtleieRegister.java": Error #: 300 : variable DbHandler not found in class ResUtleieRegister at line 6, column 27
ResUtleieRegister.java = what I called B.java and
DbHandler is what I called class C.
I know that in most IDE's you don't need to import classes that are in the same directory, but for some reason that was the solution in JB7.
How can I make JB8 understand that the classes it needs to compile is right there in the same directory?
Similar Messages
-
Compiling (or not) in JBuilder8
Hi there.
Does anybody out there have any experience with JBuilder8?
I have a problem compiling my stuff. Let's say that I have 3 java-files (A.java, B.java & C.java). Since B needs C and A needs B, i need to compile C first...
import B;
class A {
import C;
class B {
class C {
I click the "make"-button for C, and that works fine. When I click "make" for class B, I get this message:
"B.java": Error #: 200 : '.' expected at line 1, column 9
And this goes for compiling A.java too.
FACT: IT WORKS IN JBUILDER7!!!
FACT: I KNOW THAT C.class IS COMPILED IN THE RIGHT DIRECTORY.
I guess some of you would like to say: "Well, use JBuilder7 then."
That isn't such a bad idea, but I'd like this to work in JB8.
Any help is appreciated.
BR,
HermanWhen I remove the import statement I get this message:
"ResUtleieRegister.java": Error #: 300 : class DbHandler not found in class ResUtleieRegister at line 6, column 11
"ResUtleieRegister.java": Error #: 300 : variable DbHandler not found in class ResUtleieRegister at line 6, column 27
ResUtleieRegister.java = what I called B.java and
DbHandler is what I called class C.
I know that in most IDE's you don't need to import classes that are in the same directory, but for some reason that was the solution in JB7.
How can I make JB8 understand that the classes it needs to compile is right there in the same directory? -
Basic Questions About Compiling Source
Hi!
I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/ - and during the install process, everything will be installed in its proper dir, right?
How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
Once you do figure out which compiler to run, the process is supposed to go like this, right?
./configure
make (or whatever)
make install
But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
$ ls ~/Downloads/arm
ChangeLog
README
armrc.sample
setup.py
LICENSE
arm
install
/src
Maybe it's that 'setup.py' file? What are you supposed to do?
Of course, it's not only this one that's given me trouble. Sometimes the readme will say I have to edit a certain file for my system. Are there just a few standard changes you always make? Or is it...how can I put it...complicated? How do you find out what's needed in those cases?
OS 10.6.8
Xcode 3.2.4
Python 2.7sudont wrote:
I have some very basic questions about compiling source on 10.6. BTW, if the unix discussions still exist, they've hidden them pretty well, so I hope I'm in the right place for this!
This is the place for UNIX discussions. If you have developer-related questions, there is a forum dedicated to that as well: Developer Forums
First off, you simply cd to the source dir, wherever it may be - in my case ~/Downloads/source/ - and during the install process, everything will be installed in its proper dir, right?
Yes. Hopefully the project you want to install follows standard conventions. If so, you can do "./configure", then "make", and finally "sudo make install" to install the software into "/usr/local".
How do you know which compiler to use? There seem to be several: make, gmake, gcc, g++, etc...
The make file will figure that stuff out.
Once you do figure out which compiler to run, the process is supposed to go like this, right?
./configure
make (or whatever)
make install
Yes, with the addition of "sudo" before "make install" because "/usr/local" is owned by root.
But this doesn't always work for me. For instance, I'm trying to compile 'arm', but it doesn't seem to have a 'configure' script.
$ ls ~/Downloads/arm
ChangeLog
README
armrc.sample
setup.py
LICENSE
arm
install
/src
arm? You mean "arm (anonymizing relay monitor) - Terminal status monitor for Tor relays." You really don't want to be messing with that stuff. The only people involved with Tor that are trustworthy are US Navy intelligence who have their own uses for it. If you don't understand it as well as they do, best stay away. -
Suddenly, my java programs won't compile : Class not found error
Hello, the strangest things happened on my win xp pro computer...
My java-files wo'nt compile anymore. The compiler (javac) is complaning about classes he can't find. But these classes are in the same directory....
Can anyone help me?generally female version are more complaining then the male versions!!
if the male version is complaining then it must be something wrong in your path or classpath!!
1) have you tried before to complie? and it has been complied successfully in past?
2) check out your classpath.. is it containing "." ( a dot)? if not then just put a ".;" in starting of your classpath & start compiling your code in new command prompt...
hope now your compiler will not complain... :) -
SQL 2012 installation Error-The MOF compiler could not connect with the WMI server
Hi all,
I am getting below error while installing SQL 2012 Dev edition in Win 8.1 Pro.
I am facing lot of issues while installing SQL 2012 in Win 8.1 Pro.Any other steps we need to take to install SQL 2012 in Win 8.1.
Thanks in advance.Installation:
Installation for SQL Server 2012
Hardware and Software Requirements for Installing SQL Server 2012
Installing the .NET Framework 3.5 on Windows 8 or 8.1
About "The MOF compiler could not connected with the WMI server" error message:
Please, verify the Windows Management Instrumentation has status "started" and is set with Startup Type "Automatic". (Alberto Morillo, SQLCoffee.com).
José Diz Belo Horizonte, MG - Brasil -
About compiling a kernel with ABS
So I was following the guide on the wiki about compiling a new kernel with ABS. I wanted to try and make a kernel that didn't need to use initramfs. I thought I could do it by not enabling the kernel to have the ability to use initramfs, and I think I also added the right modules to be built into it not have them be modules ( any idea if I can make sure I chose the correct drivers). After I was done I needed to install in using pacman -U. It told me it conflicted with kernel26 or something, and it asked if I wanted to replace it. Do I want to replace the current with the new? Or can I have them side by side? I know I can have multiple kernels, so it confused me a little.
Still new with all this, but I'm pretty sure you don't want to replace your current kernel, or you could mess your system up should your newly compiled kernel not work.
When you created your PKGBUILD did you by any chance forget to change its name? You should have something like "pkgname=linux-custom" (there's more to change, check the wiki for the full list) instead, so that your new kernel will be called "linux-custom" (or whatever you call it), and it can be installed alongside the (Arch) official "linux"
After that, you can put both in your bootloader, and boot the one you want. But yeah I think you definitely want to keep the official kernel alongside yours, just in case. -
Hello, i have a question about compiling. I always presumed that when a class is compiled and then run, the import statements just tell the executing JVM where to look in the JRE for the said imported classes before loading them into memory (is that correct?)
What's confusing me is when happens when I write an applet which utilises the netscape.javascript.JSObject class (which after JRE 1.4.1 resides in the $JAVA/lib/plugins.jar). I have no idea what happens, as in does the relevant code get compiled into my .bin file or is that jar just referenced on the excecuting clients machine, and if the latter what happens if they are using a version before 1.4.2 where this class is residing in lib/jaws.jar, or does that not make any difference as the package names are still the same?
You can see I'm confused and I think this highlights a fundamental gap in my knowledge,
Thanks for any help!r035198x wrote:
The classes are loaded on application start up. Not allways, no.
<quote-self>Just use the reflections API.. </quote-self>
If the JVM doesn't find the required class then your application probably won't have had a chance to try and catch the exception.That's exakery why we use reflections to try to load classes which may or may-not exist.
PS: Had to do this with xerces classes to ensure we got the right version despite certain versions of Ant prepending it's version to my classpath, darn thing... sort of an "ehaustive search" for class definitions. Booger of an idea. -
I have sownloaded an HD movie from iTunes store and when I attempted to play it on my Windows 7 PC a error message popped up saying something about the display not being compatible for HD movies. I have tried changing the display resolution several times but it didn't help. Now it just comes up with a blank screen when I attempt to play it. SD movies work fine. I have the latest version of iTunes installed.
Can anyone help me resolve this problem?Apparently the display is required to be HDCP compatible to view HD movies in iTunes. My display isn't so this is my problem. I contacted Apple support and they have agreed to credit me for the HD movie and I have now downloaded the SD version.
-
My "About" button is not working HELP
Hello fellow BB owners ive been tweaking and updating my new 8330 and it seems that now my about button does not respond.All the other menus and places work fine but when i click on the about button it just does not respond.
thanks in advance
Jason
Solved!
Go to Solution.Jason, have you recently upgraded your device to OS 4.5, and in that process did you remove the Voice Activated Dialing features? If you did, that also disables the Options > About screen, and was likely explained in the upgrade process you used.
Workaround: on the homescreen, press and hold ALT while typing E A C E
or
Press ALT + rightSHIFT + H at the same time.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
The MOF Compiler could not connect with the WMI server
I am trying to add node2 to SQL cluster (2008) However, I kept running into errors with the following error message:
"The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI Server to start".
I checked on the WMI services, they are started and running.renamed the WMI repository. but nothing worked .
Any idea what settings I need to change in order to ensure a successful instalation and add node 2 to sql cluster.Hi,
Did SQL Server failed during installation and you somehow brought services online. Or it failed and next time you executed it succeeded IMO this error pops up because of remnants of failed installation on Node 1. With cluster specially if Installation on
node 1 fails you should uninstall completely and remove all files related to SQL Server and then proceed.
Have a look at below connect,see workaround and information posted by MS
https://connect.microsoft.com/SQLServer/feedback/details/356258/the-mof-compiler-could-not-connect-with-the-wmi-server
If above still not helps please post complete setup log file
%Program files%\Microsoft sql server\100\Setup bootstrap\Log\ folder.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
TS3212 itunes won't download because something about "mobile device not authorized?"
itunes won't download because something about "mobile device not authorized?"
Hi buckirich,
Thanks for using Apple Support Communities. It sounds like you may need to restart the Apple Mobile Device Service. This article has instructions for doing this:
How to restart the Apple Mobile Device Service (AMDS) on Windows
http://support.apple.com/kb/ts1567
If that doesn't resolve the issue, I would recommend trying a thorough uninstall and reinstall of iTunes as described here:
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
http://support.apple.com/kb/HT1923
Cheers,
- Ari -
How do I enable Javascript in Foxfire 29.0? about:config does not work.
I've just downloaded the newest available Foxfire (29.0) in the hope I can access my gmail account. But it still says "Javascript is not enabled". about:config does NOT show a preferences menu, so I can't toggle Javascript on. I tried downloading add-ons to toggle Javascript on/off, but they are not compatible with Firefox 29.0.
Must I stop using Firefox altogether? I cannot access my banks, my credit cards, or my gmail accounts, nor can I access YouTube. This is all I use my browser for -- so Firefox is no longer useful to me, unless you can give me a fix for this!
Carol StromekThis solution didn't work, because the page was redirecting and never arrived. It might have been because I was using Internet Explorer, which also is not Javascript enabled -- but the Mozilla Support Forum requires Javascript enabled in order to access it!
I used Chrome, and was able to toggle it when the about:config field ''finally'' opened. The originally posted instructions omitted the instruction that the command about:config will only work if you do it from the Firefox home screen, where the orange word 'Firefox' appears at the beginning of the destination. -
I am trying to install SQL Server 2008 in my local machine. However, I kept running into errors with the following error message:
"The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such
as the failure of the WMI Server to start".
I also ran "rundll32 wbemupgd, UpgradeRepository" to rebuild WMI repository, it doesn't help either. I got the same error message.
Any ideas what settings I need to change in order to ensure a successful installation of SQL Server 2008?"The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such
as the failure of the WMI Server to start".
I also ran "rundll32 wbemupgd, UpgradeRepository" to rebuild WMI repository, it doesn't help either. I got the same error message.
Any ideas what settings I need to change in order to ensure a successful installation of SQL Server 2008?
can you check below two links.Make sure previous failed installation is removed completely.
http://connect.microsoft.com/SQLServer/feedback/details/356258/the-mof-compiler-could-not-connect-with-the-wmi-server#
Solution given by Connect MS is:
Possibly the issue was caused by uninstalling from add-remove programs - at any rate, using aaron bertrand's suggestion below fixed the issue. Also of note - I used the local admin for the install.
http://sqlblog.com/blogs/aaron_bertrand/archive/2009/02/20/the-xp-sp3-msxml6-sp2-sql-server-debacle.aspx
yes - remove msxml6 and any other half installed portion of sql 2008 and REBOOT and install sql
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Hi,
I've just installed JVM 1.4.2 for Unix Systems Services on z/OS 1.4 mainframe.
When I issue the command java -version I get the following:
# java -version
Could not load dll : /usr/lpp/java/IBM/J1.4/bin/libjitc.so
: EDC5157I An internal error has occurred.
Warning: JIT compiler "jitc" not found. Will use interpreter.
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM z/OS Persistent Reusable VM build cm142-
20070329 (SR8) (JIT disabled))
I have check for libjitc.so in the java directory and it is there. Java compiles and runs fine. Can anyone help?OS/400 interprets Java methods until reaching the threshold specified by the os400.jit.mmi.threshold Java system property. After reaching the threshold, OS/400 uses the JIT compiler to compile methods into native machine instructions.
To use the Just-In-Time compiler, you need to set the compiler value to jitc (default it isn't). You can set the value by adding an environment variable or setting the java.compiler system property. Select one method from the list below to set the compiler value:
* From a command line prompt on your iSeries server, add the environment variable by using the Add Environment Variable (ADDENVVAR) command. Then, run your Java program using the Run Java (RUNJVA) command or JAVA command. For example, use:
ADDENVVAR ENVVAR (JAVA_COMPILER) VALUE(jitc)
JAVA CLASS(Test)
* Set the java.compiler system property on the iSeries command line. For example, enter JAVA CLASS(Test) PROP((java.compiler jitc))
* Set the java.compiler system property on the Qshell Interpreter command line. For example, enter java -Djava.compiler=jitc Test
Once you set this value, the JIT compiler optimizes all of the Java code before running it. -
Tracks from compilations are not appearing on an atist's song list. Is there a setting I can chnge to make them appear?
On the iPod turn off Settings > Main Menu > Compilations & Settings > Music Menu > Compilations.
See Grouping tracks into albums for further details.
tt2
Maybe you are looking for
-
Move a file from one lacation to another in FTP
Hi Experts, i have scenario were i have to move a file from one location to another in a FTP the source and the Target structure are same can we go with only configuration(ID) why because there is no mapping done but i have dbout when we create a s
-
I tried to update my ipod touch software by syncing with itunes and it put the ipod into "recovery mode". Seems like the only option is to restore? Is there a way to get it out of recovery mode?
-
I f anyone has a solution to the above problem I'd appreciate it!
-
Re: HP Printer Control app for Windows 8
do I need some kind of disc to install my printer? it's been packed for a year and just plugged into laptop???? i just want to print something!! thank you
-
What is the purpose why we define partner determination
hi my question is what is use of partner determination. How many partner functions we should create in customer master. Is there any thumb rule we have create sd,bp,py,sh thanks in advance