Skip to main content

can't import java to javaFX

5 replies [Last post]
expsan
Offline
Joined: 2008-06-12
Points: 0

Hi!
can't import my java file in javaFX .
they are same package.
-------
java
-------
package x ;

class MyJava{}

----------
javaFX
----------
package x ;

import x.MyJava ; <---- an Error occurred : cannot find symbol !!

In netbean6.0.1's plugin did not ! but, In netbean6.1(fx plugin version 2008-04-18_14-52-03) an error occurred

please, help!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pedro22
Offline
Joined: 2008-06-17
Points: 0

hi,

i have the same problem, i cant import java classes into my fx-classes.
this error occurs: undefined type javaClass.Hello in import <> as Hello;

my Java-Class is seems like that

package javaClass;

public class Hello{
//code
}

my fx-class:

package javaClass;

import javaClass.Hello;
//code

can anybody tell me the reason why it dosent work?

peshkatari
Offline
Joined: 2008-04-17
Points: 0

dude from the source i can read that both files are in the same package so u dont need to import anything :D
anyway if u still have probs post the full source and the error message.

expsan
Offline
Joined: 2008-06-12
Points: 0

i know that don't need to import in same package.
first, i tried that! but an Error occurred.
so, i tried that method.

if it's only my problem in netbean6.1, i'll try again !!.
thank you.

alexsch
Offline
Joined: 2007-07-12
Points: 0

I tried the example with plugin 2008-06-15_02-32-47.zip and it works for me.
Probably something has been fixed in the JavaFX Script compiler.

expsan
Offline
Joined: 2008-06-12
Points: 0

thank you for replying!

I found that netbean6.1's Preview window not work rightly !
an Error occurred in Preview window , but compiling worked well! and program worked well too!
until now, Preview window display Error message!

Message was edited by: expsan