Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » javax support missing(No javax.annotations, javax.sound, etc)
javax support missing [message #1854355] Mon, 15 August 2022 19:38 Go to next message
Eclipse UserFriend
I installed a new version of Eclipse and java on my Mac. I have created HelloWorl and other simple code, but when I try to import or use the javax.sound.midi stuff, I get "cannot resolve to a type." Annotations too, RowSet (SQL)

Eclipse is just not seeing any of the javax stuff, and I've spent hours trying to figure this out. Help!!!

Versions
MacOS: 12.5
Java: 16.0.2
sh-3.2# java -version
java version "16.0.2" 2021-07-20
Java(TM) SE Runtime Environment (build 16.0.2+7-67)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)

Eclipse:
Version: 2022-06 (4.24.0)
Build id: 20220609-1112

[Updated on: Tue, 16 August 2022 20:09] by Moderator

Report message to a moderator

Re: javax support missing [message #1854360 is a reply to message #1854355] Tue, 16 August 2022 03:48 Go to previous messageGo to next message
Eclipse UserFriend
javax.midi doesn't exist, but javax.sound.midi does. Are you sure your package names are all correct? You've omitted them for the classes you've mentioned.

[Updated on: Tue, 16 August 2022 03:48] by Moderator

Report message to a moderator

Re: javax support missing [message #1854380 is a reply to message #1854360] Tue, 16 August 2022 19:02 Go to previous messageGo to next message
Eclipse UserFriend
Yes, I'm sure. I type:
import javax. then dot .

I get a drop down and I can select sound or sound.midi
Btw, if I have import javax.sound, dot . does not give me a drop down where I can select midi

If I put a dot after javax.sound.midi

nothing. I put an asterisk

import javax.sound.midi.*;

I should now be able to instantiate Sequence and all that good midi stuff but can't. I get that can't resolve to a type error. Annotations same issue. SQL ditto.

No one has ever seen this before? Sigh!
Re: javax support missing [message #1854383 is a reply to message #1854380] Wed, 17 August 2022 02:24 Go to previous messageGo to next message
Eclipse UserFriend
It works for me, but then most users probably let the editor add the necessary import statements for them while they write their logic.
Re: javax support missing [message #1854384 is a reply to message #1854383] Wed, 17 August 2022 03:10 Go to previous messageGo to next message
Eclipse UserFriend
I know how to code java. There is something not right about my environment, and I guess I'll have to try something else. I wish someone on this forum might say, yeah, try this.
Re: javax support missing [message #1854387 is a reply to message #1854384] Wed, 17 August 2022 06:20 Go to previous messageGo to next message
Eclipse UserFriend
It works for me too.

index.php/fa/42413/0/
Re: javax support missing [message #1854401 is a reply to message #1854384] Wed, 17 August 2022 11:45 Go to previous messageGo to next message
Eclipse UserFriend
Dave Godbey wrote on Tue, 16 August 2022 23:10
There is something not right about my environment, and I guess I'll have to try something else.

Tell us about your project setup.
Re: javax support missing [message #1854414 is a reply to message #1854401] Wed, 17 August 2022 19:58 Go to previous messageGo to next message
Eclipse UserFriend
I'm sure it does work for you. This is obviously the wrong place to post this. Where is the "gnarly problem" forum?
Re: javax support missing [message #1854418 is a reply to message #1854414] Thu, 18 August 2022 06:06 Go to previous message
Eclipse UserFriend
No matter which forum to which you post, you'll need to share more details because if it works for everyone except you we need to understand what's different in the project where you are trying to do this. That's why Nitin asked you to share details about the project's setup. Note that you share screen captures by using Preview Quick Reply and the Upload File.
Previous Topic:Eclipse marketplace asking authorization every time
Next Topic:JDT simple change
Goto Forum:
  


Current Time: Sun Feb 09 22:24:10 GMT 2025

Powered by FUDForum. Page generated in 0.08802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top