#s.lookupAsync(mxLookup, Type.MX) => cant find variable MX symbol

35 messages · Page 1 of 1 (latest)

devout quartz
#

please help me

steel oasisBOT
#

This post has been reserved for your question.

Hey @devout quartz! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

clear beacon
#

MX does not exist in Type

devout quartz
#

is from this library

#

import org.xbill.DNS.lookup.LookupSession;

#

im fallowing the github example

clear beacon
#

you imported the wrong Type

#

you imported java.awt.Window.Type, should've imported org.xbill.DNS.Type

devout quartz
#

i imported but is greyed

#

import org.xbill.DNS.Type;

#

it does not work

clear beacon
devout quartz
#

NO LUCK

#

import org.xbill.DNS.Type.*;

#

even if i put with all

#

still get another class location

#

location: class java.awt.Window.Type

clear beacon
devout quartz
clear beacon
#

s.lookupAsync(mxLookup, org.xbill.DNS.Type.MX)

#

when you have 2 classes with the same name, you cant import them both

#

for obvious reasons

#

you're gonna have to be a bit more verbose if that's the case

devout quartz
#

thanks im developing in java 2 days ago

steel oasisBOT
# devout quartz thanks im developing in java 2 days ago

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

devout quartz
#

im new

#

thank you

#

im comming from ruby

#

thanks you are a cool cat 😉