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

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

Клубове
Dir.bg
Взаимопомощ
Горещи теми
Компютри и Интернет
Контакти
Култура и изкуство
Мнения
Наука
Политика, Свят
Спорт
Техника
Градове
Религия и мистика
Фен клубове
Хоби, Развлечения
Общества
Я, архивите са живи
Клубове Дирене Регистрация Кой е тук Въпроси Списък Купувам / Продавам 23:43 25.06.24 
Клубове/ Компютри и Интернет / Java Всички теми Следваща тема Пълен преглед*
Информация за клуба
Тема 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"
иначе всичко друго правя както трябва.

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


Цялата тема
ТемаАвторПубликувано
* Eclipse Help _3AM_KMET   15.09.03 13:44
. * Re: Eclipse Help portal   15.09.03 14:01
. * Re: Eclipse Help _3AM_KMET   15.09.03 14:16
. * Opraih se _3AM_KMET   15.09.03 16:02
Клуб :  


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

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