Daniel Wilen | 1 Jun 2003 19:17

Start JVM with file.encoding UTF8


Hello,
This is my first mail to the list.
I just tested the application in Windows and I have a question.
I´d like to edit bundlefiles that has the encoding UTF8. Since I cant "tell" the application that, I´d
like to start the JVM with the "file.encoding" set to UTF8. How can I do that?
Regards
/Daniel
--
-------------------
Daniel Wilén       |
wilen <at> almhult.com  |
031-222 778        |
-------------------
--

Fabio Fornaro | 1 Jun 2003 19:21
Picon

Problems on loading images

I'm developing an application (under Windows 2000) that needs to load gif images from a specified directory. Everything works fine under KAWA 4.01 or Visual Cafè 3.0c but under NetBeans 3.1 build 34 & 36 the MediaTracker class raises Exceptions during the load operations.
Can anyone help?
 
Here's a code shortcut....
 
class ImageLoader {
 
 ImageLoader (Component c, String ImgFileName) {
     
      MediaTracker mt = new MediaTracker(c);
      Image Img = null;
 
      try {

         Img = Toolkit.getDefaultToolkit().getImage(ImgFileName);
         mt.addImage(Img, 0);
         mt.waitForID(0);
         if (mt.isErrorID(0))
            error("Problems by '"+ImgFileName+"' image."); /* This one's raised!! */
        
      } catch (InterruptedException e) {
           error("Loading stopped: " + e.getMessage() + ".");
      }
 
   }
 
}
 
Thanks.
Fabio
Fabio Fornaro | 1 Jun 2003 19:23
Picon

Re: Problems on loading images

Hi Jesse!
sorry  for answering so lately.... I had some POP3 problems...

> Perhaps your ImgFileName is a relative path, thus resolved according to
> the VM's working directory (which is not reliable)?
>
> -Jesse

Yes, ImgFileName is a relative path, but the directory is fully
reliable....( consider that the path of the image is mounted with the rest
of the directory containing classes and other files )...
Anything to suggest ?
Thanks, Fabio.

Vaughan Harrison | 1 Jun 2003 20:23

Databases

Hi all,
       does NetBeans offer the ability to connect to databases?  I'm looking at using mySQL.  Any suggestions would
be great!

Thanks,
Vaughan

Free email addresses helping endangered species every time you write
http://www.purpleturtle.com

Howard Dittmer | 1 Jun 2003 20:46
Picon

Debugger Exception - Cannot connect to remote VM

I am having a problem getting the debugger to run. I have made 4 
installs on 3 different machines and all have the same problem. When I 
try to launch the debugger I get the message Debugger exception: Cannot 
connect to remote VM, com.sun.jdi.connect 
IllegalConnectorArgumentsException Argument unspecified. The installs 
include netbeans 3.2 on a Mac Powerbook G4 running Mac OS X (after I 
followed the instructions on the netbeans web site for Mac OS X), Forte 
4 Java 2.0 CE on the same machine, Forte 4 Java 2.0 CE on a Compaq 
Deskpro running Red Hat 7.0 and on a Mac Powerbook G3 running LinuxPPC.

I did find a FAQ which suggests this error is associated with a 
directory name which contains a space character. I have checked and 
cannot find any such directory. Additionally it seems unlikely that this 
problem would exist on all three machines with different operating 
systems.

Any suggestions. Help.

Thanks,
Howard Dittmer
hdittmer <at> mac.com

Pierre-Henri Wuillemin | 1 Jun 2003 23:54

parseDocument signature error ??

Hello all,

Since a few days, when trying to run netbeans, I have this error :

> Wed May 22 14:39:54 CEST 2002: java.lang.VerifyError: (class: 
> org/apache/tools/ant/module/xml/AntProjectSupport, method: 
> parseDocument signature: ()V) Incompatible object argument for 
> function call

I tried
- to create a new Project
- to remove the ant file and create a new one
- to reinstall netbeans

And still I have this exception.

Thank you for any clues ...
/PH

Unknown | 2 Jun 2003 00:51

(unknown)


Patrick Schugg | 1 Jun 2003 16:45

RMI and Project Filesystem

I posted a few days ago a question about integrating the 
RMI class files I receive from the server into my NetBeans 
project, more specifically my servlets in order for the 
compiler to see them.

I was unable to find my previous post to reply to.  I just 
wanted to let anyone interested know that the reason it 
didn't work was because the RMI class files were not 
inside a package and apparently there is a problem in 
terms of being able to use classes from the "default" 
package.  Once the RMI classes were re-created inside a 
package structure along with the stub and skel classes 
things worked out fine.

Is this a Java problem, a Netbeans problem, or both?  Any 
reading on this?  Thanks.

Patrick Schugg
Code Monkey
Ereyago.com

Radim Kubacki | 2 Jun 2003 10:33
Picon

Re: Problem with external browser

Lorenzo A. Jimenez Briceno wrote:
> Dear nbusers:
> 
>  
> 
> I am new to “Sun One Studio 4 update 1 community edition” and I have 
> been working on my first project with servlets, classes and jsps, but 
> this message always appear when executing the code:
> 
>  
> 
> “Could not access the URL through the external browser. Check the 
> configuration. In the Options window, expand IDE configuration. Then 
> expand Server and External Tool Settings and select Web Browsers”
> 
It is quite difficult to answer without more details. At least OS and 
your web browser are important together with information whether you 
have customized IDE settings related to browsers (as the message suggests).

> 
> I know that the application is ok and running because I open IE browser 
> manually and write down the url and works ok.
> 
You can tell the IDE to use IE.

Radim

>  
> 
> Thanks,
> 
>  
> 
> Lorenzo Jimenez
> 
> Costa Rica

Radim Kubacki | 2 Jun 2003 10:35
Picon

Re: War File Creation - java.lang.UnsupportedOperation

Kalyan wrote:
> When I try to create War file from Tools->Export War file I'm getting 
> java.lang.UnsupportedOperationException:null
> 
> I was able to Buil All on the Web Module without any problems. Anybody 
> has any Idea, i'm using Sun One Studio 4.0 with Update 1 and has all the 
> updates.
> 
I am not sure what's going on but you can enter a bug in NetBeans 
IssueZilla with as much details as possible so we can try to help you. 
ide.log file can contain some usefull data.

Radim

> Thanx
> 


Gmane