Клубове Дир.бг
powered by diri.bg
търси в Клубове diri.bg Разширено търсене

Вход
Име
Парола

Клубове
Dir.bg
Взаимопомощ
Горещи теми
Компютри и Интернет
Контакти
Култура и изкуство
Мнения
Наука
Политика, Свят
Спорт
Техника
Градове
Религия и мистика
Фен клубове
Хоби, Развлечения
Общества
Я, архивите са живи
Клубове Дирене Регистрация Кой е тук Въпроси Списък Купувам / Продавам 02:45 27.09.24 
Компютри и Интернет
   >> Java
Всички теми Следваща тема *Кратък преглед

Тема Eclipse Help  
Автор _3AM_KMET (аконкагуа)
Публикувано15.09.03 13:44



Опитвам се да си пусна SWT примерите на Eclipse!
Прочетох "SWT standalone examples setup" в хелпа на еклипс и правя всичко както трябва там.
Предполагам че заради тази точка
6.Select the Arguments tab. In the VM Arguements area specify the location of the SWT library depending on your target platform as follows:
win32: -Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86 ми дава следната грешка:

java.lang.NoClassDefFoundError: Djava/library/path=c:\java\eclipse\plugins\org/eclipse/swt/win32_2/1/0\os\win32\x86
Exception in thread "main"
къде може да е проблема и по каква причина точките ги е заместило с "/"?
Ще съм благодарен да ми помогнте.

В общуването имам трудности.


Тема Re: Eclipse Helpнови [re: _3AM_KMET]  
Авторportal (Нерегистриран)
Публикувано15.09.03 14:01



Ami problema e tochen prevod na greshkata sloji klasovete koito ti trqbvat v classpath promenlivata na sredata,tochkite gi zamestva s / zashtoto realno tova sa pytishta v dyrboto na direktoriite .... vobshti liniii tova



Тема Re: Eclipse Helpнови [re: portal]  
Автор _3AM_KMET (аконкагуа)
Публикувано15.09.03 14:16



Извинявай неможах да те разбера. значи в хелпа ми пише така:
...
...
...
At this point your SWT examples should be compiled without any errors. Check the Tasks view for errors. If you get an error like "java.lang.Object not found" it means you have not configured a JRE. Go to the Window > Preferences dialog and select the Java > Installed JREs preference page and ensure that a JRE is installed and that the path to the JRE is correct.

при компилирането нямам проблеми!!!

Running the Example
Now you have to configure Eclipse to run the example. This requires putting the SWT JNI libraries on the library path so that the VM can find them:

Open the Java perspective.
In the Packages view, select the main class that you want to run. For example, the main class for the Address Book example is org.eclipse.swt.examples.addressbook.AddressBook.
Select Run > Run... from the main menu.
In the Launch Configurations dialog that appears, select Java Application and click on the New button.
Fill in the Name, Project and Main class fields according to the example that you wish to run.
Select the Arguments tab. In the VM Arguements area specify the location of the SWT library depending on your target platform as follows:
win32: -Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86
linux gtk: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_2.1.0/os/linux/x86
linux motif: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.1.0/os/linux/x86
solaris motif: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.1.0/os/solaris/sparc
aix motif: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.1.0/os/aix/ppc
hpux motif: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_2.1.0/os/hpux/PA_RISC
photon qnx: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_2.1.0/os/qnx/x86
macosx: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_2.1.0/os/macosx/ppc
Click on the Run button.

всичко правя както си е поисано и не става. дава ми първо съобщение: Could not find the main class. Program will exit.
и след това тази грешка в конзолата:
java.lang.NoClassDefFoundError: Djava/library/path=c:\java\eclipse\plugins\org/eclipse/swt/win32_2/1/0\os\win32\x86
Exception in thread "main"
иначе всичко друго правя както трябва.

В общуването имам трудности.


Тема Opraih seнови [re: _3AM_KMET]  
Автор _3AM_KMET (аконкагуа)
Публикувано15.09.03 16:02



s 2.1.1 sum a w helpa pishe za 2.1.0 ta ne bjal napisal prawilniq path.
i ne bjah slojil tire otpred
sega weche wurwjat.

В общуването имам трудности.



Всички темиСледваща тема*Кратък преглед
Клуб :  


Clubs.dir.bg е форум за дискусии. Dir.bg не носи отговорност за съдържанието и достоверността на публикуваните в дискусиите материали.

Никаква част от съдържанието на тази страница не може да бъде репродуцирана, записвана или предавана под каквато и да е форма или по какъвто и да е повод без писменото съгласие на Dir.bg
За Забележки, коментари и предложения ползвайте формата за Обратна връзка | Мобилна версия | Потребителско споразумение
© 2006-2024 Dir.bg Всички права запазени.