Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » how to install "import java." and "import javax.
how to install "import java." and "import javax. [message #1797857] Wed, 07 November 2018 14:14 Go to next message
Eclipse UserFriend
Tried to import a java.bufferreader and filereader and IOexeption. but none of them come up. Did I forget to install a package of some sorts? If so, how do I go about installing them (step by step instructions preferred because I am new to java and eclipse)AkinatorXender Kik


or

Are they already installed and are no longer go by those statements in java? If so, what are the new statements?

[Updated on: Wed, 07 November 2018 19:53] by Moderator

Report message to a moderator

Re: how to install "import java." and "import javax. [message #1797939 is a reply to message #1797857] Thu, 08 November 2018 23:16 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Two ways to find out:
- instead of typing "import java." (which probably gives too long a list to actually find anything?) type "import BufferedReader" and then hit Ctrl+space
- use the Open Type dialog (Ctrl+T) and use all kinds of partial patterns to locate the type you need

Hint: those types don't live in package java, but in other packages that just start with "java.", like, e.g., "java.io".
Re: how to install "import java." and "import javax. [message #1850632 is a reply to message #1797939] Fri, 11 March 2022 04:53 Go to previous messageGo to next message
Harry Callum is currently offline Harry CallumFriend
Messages: 1
Registered: January 2021
Junior Member
Did you mean java.io.BufferedReader etc.?
gb whatsapp
You could also try typing "import BufferedReader<Ctrl+Space>" i.e., without *any* package prefix.

HTH


[Updated on: Wed, 06 April 2022 08:09]

Report message to a moderator

Re: how to install "import java." and "import javax. [message #1852380 is a reply to message #1850632] Fri, 13 May 2022 03:14 Go to previous messageGo to next message
Ryan Wilson is currently offline Ryan WilsonFriend
Messages: 1
Registered: May 2022
Junior Member
Harry Callum wrote on Fri, 11 March 2022 04:53
Did you mean java.io.BufferedReader, etc.?
yo whatsapp
You could also try typing "import BufferedReader<Ctrl+Space>" i.e., without *any* package prefix.

HTH

I have tried this, but it's giving me an error.
Edit: It was solved!

[Updated on: Wed, 20 July 2022 08:39]

Report message to a moderator

Re: how to install "import java." and "import javax. [message #1852394 is a reply to message #1852380] Fri, 13 May 2022 15:17 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Ryan Wilson wrote on Fri, 13 May 2022 05:14
Harry Callum wrote on Fri, 11 March 2022 04:53
Did you mean java.io.BufferedReader etc.?

You could also try typing "import BufferedReader<Ctrl+Space>" i.e., without *any* package prefix.

HTH

I have tried this but it's giving me an error.


Do you care to share what error you get? (remember that we don't see your screen)
Re: how to install "import java." and "import javax. [message #1856205 is a reply to message #1852380] Sun, 27 November 2022 05:03 Go to previous messageGo to next message
islan tani is currently offline islan taniFriend
Messages: 3
Registered: September 2022
Junior Member
Ryan Wilson wrote on Fri, 13 May 2022 03:14
Harry Callum wrote on Fri, 11 March 2022 04:53
Did you mean java.io.BufferedReader, etc.?
aero whatsapp
You could also try typing "import BufferedReader<Ctrl+Space>" i.e., without *any* package prefix.

HTH

I have tried this, but it's giving me an error.
Edit: It was solved!

yes, it's fixed now I faced it long ago but no issues now.
Re: how to install "import java." and "import javax. [message #1856601 is a reply to message #1850632] Fri, 16 December 2022 18:29 Go to previous messageGo to next message
Marle More is currently offline Marle MoreFriend
Messages: 1
Registered: December 2022
Junior Member
Harry Callum wrote on Fri, 11 March 2022 04:53
Did you mean java.io.BufferedReader etc.?

You could also try typing "import BufferedReader<Ctrl+Space>" i.e., without *any* package prefix.

HTH

Didn't understand "Without package prefix" can you little bit explain.
Re: how to install "import java." and "import javax. [message #1856792 is a reply to message #1856601] Tue, 03 January 2023 06:25 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Not putting any package information in there, writing only "import BufferedReader", and then striking Ctrl+Space.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: how to install "import java." and "import javax. [message #1858494 is a reply to message #1856205] Wed, 05 April 2023 06:51 Go to previous message
arshi agarwal is currently offline arshi agarwalFriend
Messages: 2
Registered: September 2022
Location: Canada
Junior Member
islan tani wrote on Sun, 27 November 2022 05:03
Harry Callum wrote on Fri, 11 March 2022 04:53
Did you mean java.io.BufferedReader, etc.?

You could also try typing "import BufferedReader<Ctrl+Space>" i.e., without *any* package prefix.

HTH

yes, it's fixed now I faced it long ago but no issues now.

Glad to hear your issue was resolved. Can you share what the error was and how you fixed it? It will help me facing similar problems.


Hi, I am Arshi Agarwalg
Previous Topic:code style (and auto formatting) not working
Next Topic:java.lang.Error: Unresolved compilation problems:
Goto Forum:
  


Current Time: Wed Apr 24 20:08:24 GMT 2024

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

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

Back to the top