run Java program 問題

2007-11-02 12:40 am
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/LiveData.html#relatedclasses

我係上面個範例download左兩個source code, 但compile 左之後佢出左好多error. 其中有個是:

" java:33: package javax.media does not exist
import javax.media.Time; "


我已裝左了JDK 1.6.3 , 我想問我係咪有d class 或 API 係無的???
我可以係邊到搵依d class or API, 之後又應該放係邊, 點樣用呢?

回答 (2)

2007-11-02 10:30 am
✔ 最佳答案
hi

It is because javax.media.. is a package of JavaMediaFrame(JMF). You needs install JMF which you can take at Sun

You will also need to Download the JMF 2.1.1e Software library from here
http://java.sun.com/products/java-media/jmf/2.1.1/download.html

Have a read of the appropriate one of these
http://java.sun.com/products/java-media/jmf/2.1.1/setup.html

And also read through the JMF documentation
http://java.sun.com/products/java-media/jmf/2.1.1/documentation.html
2007-11-02 8:46 am
要run Java,你要在系統的環境變數到set個JDK 1.6.3的路經,而路經是每部機都未必一樣,要看你將檔案放在那裏,然後把那路經set返個名,再入DOS的環境輸入你剛set好的環境變數的名稱,最後找回你的檔案.
打 javac (檔案的名).java
跟着打 java (檔案的名)
咁就可以run到個program


收錄日期: 2021-05-01 17:15:10
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071101000051KK01809

檢視 Wayback Machine 備份